Added infinite reach on sandbox

This commit is contained in:
Anuken
2018-04-21 18:08:34 -04:00
parent 48061d3cae
commit 6e9d833c77
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ public abstract class InputHandler extends InputAdapter{
}
public boolean cursorNear(){
return Vector2.dst(player.x, player.y, getBlockX() * tilesize, getBlockY() * tilesize) <= placerange;
return Vector2.dst(player.x, player.y, getBlockX() * tilesize, getBlockY() * tilesize) <= placerange ||
state.mode.infiniteResources;
}
public boolean tryPlaceBlock(int x, int y, boolean sound){