Added conveyor autotiling / Fixed autotile update bug

This commit is contained in:
Anuken
2018-07-15 22:33:14 -04:00
parent 6a7ff13859
commit d552f37daf
54 changed files with 556 additions and 280 deletions

View File

@@ -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;

View File

@@ -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;