mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Working fix
This commit is contained in:
1 parent
70d1b12e18
commit
7a49754f3b
1 file changed
+8
-3
@@ -54,9 +54,14 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
|
||||
public void setInventorySlotContents (int slot, ItemStack itemstack)
|
||||
{
|
||||
super.setInventorySlotContents(slot, itemstack);
|
||||
if (slot == 0 && itemstack != null && StencilBuilder.isBlank(itemstack))
|
||||
{
|
||||
setInventorySlotContents(1, selectedStack);
|
||||
if (slot == 0) {
|
||||
if(itemstack != null && StencilBuilder.isBlank(itemstack)) {
|
||||
super.setInventorySlotContents(1, selectedStack);
|
||||
} else if(itemstack!=null) {
|
||||
ItemStack cpy=itemstack.copy();
|
||||
cpy.stackSize=1;
|
||||
super.setInventorySlotContents(1, cpy);
|
||||
}else super.setInventorySlotContents(1,null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user