From 27fa81c601a6a9a2fda1caf7317679c55004ae51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:25:04 +0200 Subject: [PATCH] Simplified onEntry in Wall --- cicaprojekt/Wall.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {