diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index feb0570..5469ee9 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -32,11 +32,8 @@ public class Wall extends Tile { public void onEntry(PlayerBase playerBase) { super.onEntry(playerBase); - if (sg == null) { - return; - } else { + if (sg != null) sg.teleport(playerBase); - } } public void onExit(PlayerBase playerBase) throws IllegalStateException {