fixed a bug where a Player would destroy a Gap as PlayerBases do
This commit is contained in:
parent
7da9cf928e
commit
6c375f94bf
@ -14,7 +14,6 @@ public class Gap extends cicaprojekt.Tile {
|
||||
public void onEntry(PlayerBase playerBase) {
|
||||
super.onEntry(playerBase);
|
||||
playerBase.destroy();
|
||||
Game.instance.playerBaseDestroyed(playerBase);
|
||||
}
|
||||
|
||||
public void onExit(PlayerBase playerBase) throws IllegalStateException {
|
||||
|
@ -20,6 +20,7 @@ public class PlayerBase implements Destroyable {
|
||||
|
||||
public void destroy() {
|
||||
destroyed = true;
|
||||
Game.instance.playerBaseDestroyed(this);
|
||||
}
|
||||
|
||||
public Tile getCurrentTile() {
|
||||
|
Loading…
Reference in New Issue
Block a user