Fixed not being able to pan with invalid recipe selected

This commit is contained in:
Anuken 2018-04-21 11:02:54 -04:00
parent 714c5fd784
commit 8a965e56cd
3 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ project(":core") {
apply plugin: "java"
dependencies {
boolean comp = System.properties["release"] == null || System.properties["release"].equals("false")
boolean comp = false
if(!comp){
println("NOTICE: Compiling release build.")

View File

@ -1,7 +1,7 @@
#Autogenerated file. Do not modify.
#Mon Apr 16 21:11:17 EDT 2018
#Sat Apr 21 01:15:29 EDT 2018
version=release
androidBuildCode=519
androidBuildCode=523
name=Mindustry
code=3.5
build=custom build

View File

@ -47,7 +47,7 @@ public class GestureHandler extends GestureAdapter{
if(control.showCursor() && !Inputs.keyDown("select")) return false;
if(!control.showCursor() && !(control.input().recipe != null
&& control.input().placeMode.lockCamera) &&
&& control.input().placeMode.lockCamera && state.inventory.hasItems(control.input().recipe.requirements)) &&
!(control.input().recipe == null && control.input().breakMode.lockCamera)){
float dx = deltaX*Core.camera.zoom/Core.cameraScale, dy = deltaY*Core.camera.zoom/Core.cameraScale;
player.x -= dx;