Crash fix / Input tweak
This commit is contained in:
@@ -49,7 +49,7 @@ public class EditorTile extends Tile{
|
||||
|
||||
@Override
|
||||
public void setBlock(Block type){
|
||||
Block previous = block();
|
||||
Block previous = wall == null ? Blocks.air : wall;
|
||||
if(previous == type) return;
|
||||
super.setBlock(type);
|
||||
op(TileOp.get(x, y, (byte)OpType.block.ordinal(), previous.id, type.id));
|
||||
|
||||
@@ -401,6 +401,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
}
|
||||
drawPlace(l.x, l.y, block, l.rotation, prevX - l.x, prevY - l.y, prevRotation);
|
||||
|
||||
rotation = l.rotation;
|
||||
prevX = l.x;
|
||||
prevY = l.y;
|
||||
prevRotation = l.rotation;
|
||||
|
||||
Reference in New Issue
Block a user