Stargates are now finally spawned correctly

Fixes #3
This commit is contained in:
Bokros Bálint 2016-05-13 19:15:53 +02:00
parent d1a20ff5dc
commit 595d5d6048

View File

@ -9,7 +9,8 @@ public class Wall extends Tile {
@Override @Override
public void spawnStargate(Stargate stargate, Direction direction) { public void spawnStargate(Stargate stargate, Direction direction) {
clearStargate(); if(stargate.isSpawned())
stargate.getCurrentWall().clearStargate();
if (sg == null) { if (sg == null) {
sg = stargate; sg = stargate;
sg.setCurrentWall(this); sg.setCurrentWall(this);