Fix part builder exploit #939

This commit is contained in:
Bernhard Bonigl committed 2014-08-31 17:28:24 +02:00
1 parent ae62aca8bf
commit 3f536410d8
1 file changed
+5
@@ -49,6 +49,11 @@ public class PartBuilderLogic extends InventoryLogic implements ISidedInventory
return new PartCrafterContainer(inventoryplayer, this);
}
@Override
public boolean canDropInventorySlot(int slot) {
return slot <= 3 ; // 0-3 = only drop input slots
}
//Called when emptying a slot, not when another item is placed in it
@Override
public ItemStack decrStackSize (int slotID, int quantity)