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;
|
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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user