Simplified onEntry in Gate
This commit is contained in:
parent
73f01495f2
commit
fd18cc72d0
@ -14,10 +14,7 @@ public class Gate extends Tile {
|
|||||||
|
|
||||||
public void onEntry(PlayerBase playerBase) {
|
public void onEntry(PlayerBase playerBase) {
|
||||||
super.onEntry(playerBase);
|
super.onEntry(playerBase);
|
||||||
if (open) {
|
if (open) playerBase.setCurrentTile(this);
|
||||||
playerBase.setCurrentTile(this);
|
|
||||||
} else
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onExit(PlayerBase playerBase) throws IllegalStateException {
|
public void onExit(PlayerBase playerBase) throws IllegalStateException {
|
||||||
|
Loading…
Reference in New Issue
Block a user