diff --git a/cicaprojekt/Gate.java b/cicaprojekt/Gate.java index 624f5ff..265bb58 100644 --- a/cicaprojekt/Gate.java +++ b/cicaprojekt/Gate.java @@ -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 {