Added infinite reach on sandbox
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#Autogenerated file. Do not modify.
|
||||
#Sat Apr 21 18:03:09 EDT 2018
|
||||
#Sat Apr 21 18:07:19 EDT 2018
|
||||
version=release
|
||||
androidBuildCode=528
|
||||
androidBuildCode=529
|
||||
name=Mindustry
|
||||
code=3.5
|
||||
build=custom build
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user