Simplified onEntry in Gate

This commit is contained in:
Bokros Bálint 2016-05-14 13:09:25 +02:00
parent 73f01495f2
commit fd18cc72d0

View File

@ -14,10 +14,7 @@ public class Gate extends Tile {
public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase);
if (open) {
playerBase.setCurrentTile(this);
} else
return;
if (open) playerBase.setCurrentTile(this);
}
public void onExit(PlayerBase playerBase) throws IllegalStateException {