Wall now is steppable only if the stargate is open
This commit is contained in:
parent
b92f164948
commit
ce5d34232c
@ -20,7 +20,9 @@ public class Wall extends Tile {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSteppable() {
|
public boolean isSteppable() {
|
||||||
return sg != null;
|
if(sg != null)
|
||||||
|
return sg.isOpen();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearStargate() {
|
public void clearStargate() {
|
||||||
|
Loading…
Reference in New Issue
Block a user