This commit is contained in:
Anuken
2023-02-09 17:50:43 -05:00
parent 3a6debfae6
commit 00f3518349

View File

@@ -393,7 +393,7 @@ public class MobileInput extends InputHandler implements GestureListener{
if(!plan.breaking && plan == lastPlaced && plan.block != null){
Draw.mixcol();
if(plan.block.rotate) drawArrow(plan.block, tile.x, tile.y, plan.rotation);
if(plan.block.rotate && plan.block.drawArrow) drawArrow(plan.block, tile.x, tile.y, plan.rotation);
}
Draw.reset();
@@ -403,13 +403,12 @@ public class MobileInput extends InputHandler implements GestureListener{
}
//draw last placed plan
if(!plan.breaking && plan == lastPlaced && plan.block != null && plan.block.drawArrow){
if(!plan.breaking && plan == lastPlaced && plan.block != null){
boolean valid = validPlace(tile.x, tile.y, plan.block, rotation);
Draw.mixcol();
plan.block.drawPlace(tile.x, tile.y, rotation, valid);
drawOverlapCheck(plan.block, tile.x, tile.y, valid);
}
}