Fixed #1484
This commit is contained in:
@@ -125,7 +125,7 @@ public class OverlayRenderer{
|
|||||||
if(tile != null && tile.block() != Blocks.air && tile.getTeam() == player.getTeam()){
|
if(tile != null && tile.block() != Blocks.air && tile.getTeam() == player.getTeam()){
|
||||||
tile.block().drawSelect(tile);
|
tile.block().drawSelect(tile);
|
||||||
|
|
||||||
if(Core.input.keyDown(Binding.rotateplaced) && tile.block().rotate){
|
if(Core.input.keyDown(Binding.rotateplaced) && tile.block().rotate && tile.interactable(player.getTeam())){
|
||||||
control.input.drawArrow(tile.block(), tile.x, tile.y, tile.rotation(), true);
|
control.input.drawArrow(tile.block(), tile.x, tile.y, tile.rotation(), true);
|
||||||
Draw.color(Pal.accent, 0.3f + Mathf.absin(4f, 0.2f));
|
Draw.color(Pal.accent, 0.3f + Mathf.absin(4f, 0.2f));
|
||||||
Fill.square(tile.drawx(), tile.drawy(), tile.block().size * tilesize/2f);
|
Fill.square(tile.drawx(), tile.drawy(), tile.block().size * tilesize/2f);
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
cursorType = ui.unloadCursor;
|
cursorType = ui.unloadCursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isPlacing() && Math.abs(Core.input.axisTap(Binding.rotate)) > 0 && Core.input.keyDown(Binding.rotateplaced) && cursor.block().rotate){
|
if(cursor.interactable(player.getTeam()) && !isPlacing() && Math.abs(Core.input.axisTap(Binding.rotate)) > 0 && Core.input.keyDown(Binding.rotateplaced) && cursor.block().rotate){
|
||||||
Call.rotateBlock(player, cursor, Core.input.axisTap(Binding.rotate) > 0);
|
Call.rotateBlock(player, cursor, Core.input.axisTap(Binding.rotate) > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user