Fixed #8718
This commit is contained in:
@@ -178,7 +178,7 @@ public class DesktopInput extends InputHandler{
|
||||
}
|
||||
linePlans.each(this::drawOverPlan);
|
||||
}else if(isPlacing()){
|
||||
int rot = block.planRotation(rotation);
|
||||
int rot = block == null ? rotation : block.planRotation(rotation);
|
||||
if(block.rotate && block.drawArrow){
|
||||
drawArrow(block, cursorX, cursorY, rot);
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
|
||||
//draw last placed plan
|
||||
if(!plan.breaking && plan == lastPlaced && plan.block != null){
|
||||
int rot = block.planRotation(rotation);
|
||||
int rot = block == null ? rotation : block.planRotation(rotation);
|
||||
boolean valid = validPlace(tile.x, tile.y, plan.block, rot);
|
||||
Draw.mixcol();
|
||||
plan.block.drawPlace(tile.x, tile.y, rot, valid);
|
||||
|
||||
Reference in New Issue
Block a user