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