Allow plastanium conveyor to be unloaded (#4087)

This commit is contained in:
Patrick 'Quezler' Mounier
2020-12-23 15:39:29 +01:00
committed by GitHub
parent 9d740e1e37
commit d144e9c91c

View File

@@ -29,7 +29,7 @@ public class StackConveyor extends Block implements Autotiler{
public float speed = 0f;
public boolean splitOut = true;
/** (minimum) amount of loading docks needed to fill a line */
/** (minimum) amount of loading docks needed to fill a line. */
public float recharge = 2f;
public Effect loadEffect = Fx.plasticburn;
public Effect unloadEffect = Fx.plasticburn;
@@ -46,7 +46,6 @@ public class StackConveyor extends Block implements Autotiler{
ambientSound = Sounds.conveyor;
ambientSoundVolume = 0.004f;
unloadable = false;
}
@Override
@@ -269,6 +268,11 @@ public class StackConveyor extends Block implements Autotiler{
}
}
@Override
public void itemTaken(Item item){
if(items.empty()) poofOut();
}
@Override
public boolean acceptItem(Building source, Item item){
if(this == source) return true; // player threw items