Simplified if statement in setCurrentWall in Stargate
This commit is contained in:
		@@ -47,12 +47,7 @@ public class Stargate {
 | 
				
			|||||||
        currentWall = wall;
 | 
					        currentWall = wall;
 | 
				
			||||||
        if(direction != null)
 | 
					        if(direction != null)
 | 
				
			||||||
            exitDirection = Direction.invert(direction);
 | 
					            exitDirection = Direction.invert(direction);
 | 
				
			||||||
        if(wall != null) {
 | 
					        isSpawned = wall != null;
 | 
				
			||||||
            isSpawned = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            isSpawned = false;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public boolean isSpawned() {
 | 
					    public boolean isSpawned() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user