Simplified if statement in setCurrentWall in Stargate
This commit is contained in:
parent
57543ff23c
commit
2aeb5b4503
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user