NEI has a nice and "useful" Delete-All Function, which would delete the Content of this Slot. This is here to prevent that.
(ItemStack aStack)
| 37 | * NEI has a nice and "useful" Delete-All Function, which would delete the Content of this Slot. This is here to prevent that. |
| 38 | */ |
| 39 | @Override |
| 40 | public void putStack(ItemStack aStack) { |
| 41 | if (inventory instanceof TileEntity && ((TileEntity)inventory).getWorldObj().isRemote) { |
| 42 | inventory.setInventorySlotContents(getSlotIndex(), aStack); |
| 43 | } |
| 44 | onSlotChanged(); |
| 45 | } |
| 46 | } |
nothing calls this directly
no test coverage detected