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
+2 -2
View File
@@ -1,7 +1,7 @@
#Autogenerated file. Do not modify. #Autogenerated file. Do not modify.
#Sat Apr 21 18:03:09 EDT 2018 #Sat Apr 21 18:07:19 EDT 2018
version=release version=release
androidBuildCode=528 androidBuildCode=529
name=Mindustry name=Mindustry
code=3.5 code=3.5
build=custom build build=custom build
@@ -43,7 +43,8 @@ public abstract class InputHandler extends InputAdapter{
} }
public boolean cursorNear(){ 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){ public boolean tryPlaceBlock(int x, int y, boolean sound){