From 595d5d604814727d73df580d72cf99e0ca2e0eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Fri, 13 May 2016 19:15:53 +0200 Subject: [PATCH] Stargates are now finally spawned correctly Fixes #3 --- cicaprojekt/Wall.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index ccc1112..d193f68 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -9,7 +9,8 @@ public class Wall extends Tile { @Override public void spawnStargate(Stargate stargate, Direction direction) { - clearStargate(); + if(stargate.isSpawned()) + stargate.getCurrentWall().clearStargate(); if (sg == null) { sg = stargate; sg.setCurrentWall(this);