Added infinite reach on sandbox
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user