Skip to content

Commit

Permalink
Fix part builder exploit #939
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 31, 2014
1 parent ae62aca commit 3f53641
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/tconstruct/tools/logic/PartBuilderLogic.java
Expand Up @@ -49,6 +49,11 @@ public Container getGuiContainer (InventoryPlayer inventoryplayer, World world,
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)
Expand Down

0 comments on commit 3f53641

Please sign in to comment.