Allow plastanium conveyor to be unloaded (#4087)
This commit is contained in:
committed by
GitHub
parent
9d740e1e37
commit
d144e9c91c
@@ -29,7 +29,7 @@ public class StackConveyor extends Block implements Autotiler{
|
|||||||
|
|
||||||
public float speed = 0f;
|
public float speed = 0f;
|
||||||
public boolean splitOut = true;
|
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 float recharge = 2f;
|
||||||
public Effect loadEffect = Fx.plasticburn;
|
public Effect loadEffect = Fx.plasticburn;
|
||||||
public Effect unloadEffect = Fx.plasticburn;
|
public Effect unloadEffect = Fx.plasticburn;
|
||||||
@@ -46,7 +46,6 @@ public class StackConveyor extends Block implements Autotiler{
|
|||||||
|
|
||||||
ambientSound = Sounds.conveyor;
|
ambientSound = Sounds.conveyor;
|
||||||
ambientSoundVolume = 0.004f;
|
ambientSoundVolume = 0.004f;
|
||||||
unloadable = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -269,6 +268,11 @@ public class StackConveyor extends Block implements Autotiler{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void itemTaken(Item item){
|
||||||
|
if(items.empty()) poofOut();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean acceptItem(Building source, Item item){
|
public boolean acceptItem(Building source, Item item){
|
||||||
if(this == source) return true; // player threw items
|
if(this == source) return true; // player threw items
|
||||||
|
|||||||
Reference in New Issue
Block a user