Simplified if statement in setCurrentWall in Stargate

This commit is contained in:
Bokros Bálint 2016-05-14 13:18:58 +02:00
parent 57543ff23c
commit 2aeb5b4503

View File

@ -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() {