From d144e9c91c9c2b8276f24421ec7b2546ac034479 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Wed, 23 Dec 2020 15:39:29 +0100 Subject: [PATCH] Allow plastanium conveyor to be unloaded (#4087) --- .../world/blocks/distribution/StackConveyor.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/distribution/StackConveyor.java b/core/src/mindustry/world/blocks/distribution/StackConveyor.java index 4d6ca5d614..4b30d7e82b 100644 --- a/core/src/mindustry/world/blocks/distribution/StackConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/StackConveyor.java @@ -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