Crash fixes
This commit is contained in:
@@ -35,7 +35,9 @@ public class EditorTile extends Tile{
|
||||
if(floor == type && overlayID() == 0) return;
|
||||
if(overlayID() != 0) op(OpType.overlay, overlayID());
|
||||
if(floor != type) op(OpType.floor, floor.id);
|
||||
super.setFloor(type);
|
||||
|
||||
this.floor = type;
|
||||
this.overlay = (Floor)Blocks.air;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -141,7 +143,7 @@ public class EditorTile extends Tile{
|
||||
|
||||
if(block == null) block = Blocks.air;
|
||||
if(floor == null) floor = (Floor)Blocks.air;
|
||||
|
||||
|
||||
Block block = block();
|
||||
|
||||
if(block.hasBuilding()){
|
||||
|
||||
Reference in New Issue
Block a user