This commit is contained in:
Anuken 2021-01-15 12:38:42 -05:00
parent 136c8cfcd2
commit 6ec76409ef

View file

@ -267,6 +267,12 @@ public class StackConveyor extends Block implements Autotiler{
link = -1;
}
@Override
public int acceptStack(Item item, int amount, Teamc source){
if(items.any() && !items.has(item)) return 0;
return super.acceptStack(item, amount, source);
}
@Override
public void handleItem(Building source, Item item){
if(items.empty()) poofIn();
@ -301,7 +307,7 @@ public class StackConveyor extends Block implements Autotiler{
if(this == source) return true; // player threw items
if(cooldown > recharge - 1f) return false; // still cooling down
return !((state != stateLoad) // not a loading dock
|| (items.total() > 0 && !items.has(item)) // incompatible items
|| (items.any() && !items.has(item)) // incompatible items
|| (items.total() >= getMaximumAccepted(item)) // filled to capacity
|| (front() == source));
}