Fix mech dropoff ¬ working

This commit is contained in:
Patrick 'Quezler' Mounier
2020-03-05 10:35:48 +01:00
parent 00249f62b6
commit 2025c7c669

View File

@@ -316,10 +316,10 @@ public class CraterConveyor extends Block implements Autotiler{
public boolean acceptItem(Item item, Tile tile, Tile source){
CraterConveyorEntity entity = tile.ent();
if (tile == source) return true; // player threw items
return!((entity.blendbit2 != 5) // not a loading dock
|| (entity.items.total() > 0 && !entity.items.has(item)) // incompatible items
|| (entity.items.total() >= getMaximumAccepted(tile, item)) // filled to capacity
|| (tile.front() == source)); // fed from the front
}
}