From 230f36d856dc27ed5bc50906e6707d0b768bf407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sat, 14 May 2016 19:00:47 +0200 Subject: [PATCH] removed unnecessary throw statement. we'll miss you. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit throw new IllegalStateException("Hiba! Te hogy kerültél a falba?") best exception evör. --- cicaprojekt/Wall.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index 3a3be71..d23cc44 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -38,9 +38,7 @@ public class Wall extends Tile { } @Override - public void onExit(PlayerBase playerBase) throws IllegalStateException { - if(sg != null) return; - throw new IllegalStateException("Hiba! Te hogy kerültél a falba?"); + public void onExit(PlayerBase playerBase) { } public Stargate getStargate() {