Added conveyor autotiling / Fixed autotile update bug
This commit is contained in:
@@ -305,6 +305,10 @@ public class DesktopInput extends InputHandler{
|
||||
public void updateController(){
|
||||
boolean mousemove = Gdx.input.getDeltaX() > 1 || Gdx.input.getDeltaY() > 1;
|
||||
|
||||
if(state.is(State.menu)){
|
||||
droppingItem = false;
|
||||
}
|
||||
|
||||
if(KeyBinds.getSection(section).device.type == DeviceType.controller && (!mousemove || player.playerIndex > 0)){
|
||||
if(player.playerIndex > 0){
|
||||
controlling = true;
|
||||
|
||||
@@ -33,18 +33,12 @@ import io.anuke.ucore.util.Translator;
|
||||
import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
public abstract class InputHandler extends InputAdapter{
|
||||
/**
|
||||
* Used for dropping items.
|
||||
*/
|
||||
/**Used for dropping items.*/
|
||||
final static float playerSelectRange = mobile ? 17f : 11f;
|
||||
/**
|
||||
* Maximum line length.
|
||||
*/
|
||||
/**Maximum line length.*/
|
||||
final static int maxLength = 100;
|
||||
final static Translator stackTrns = new Translator();
|
||||
/**
|
||||
* Distance on the back from where items originate.
|
||||
*/
|
||||
/**Distance on the back from where items originate.*/
|
||||
final static float backTrns = 3f;
|
||||
|
||||
public final Player player;
|
||||
|
||||
Reference in New Issue
Block a user