diff --git a/src/main/java/tconstruct/armor/blocks/DryingRack.java b/src/main/java/tconstruct/armor/blocks/DryingRack.java index 0a3a4b12fad..13a78885c43 100644 --- a/src/main/java/tconstruct/armor/blocks/DryingRack.java +++ b/src/main/java/tconstruct/armor/blocks/DryingRack.java @@ -96,12 +96,9 @@ boolean activateDryingRack (World world, int x, int y, int z, EntityPlayer playe } else { - if (logic.isStackInSlot(0)) - { - ItemStack decrStack = logic.decrStackSize(0, 1); - if (decrStack != null) - addItemToInventory(player, world, x, y, z, decrStack); - } + ItemStack decrStack = logic.decrStackSize(0, 1); + if (decrStack != null) + addItemToInventory(player, world, x, y, z, decrStack); } world.markBlockForUpdate(x, y, z); @@ -111,7 +108,11 @@ boolean activateDryingRack (World world, int x, int y, int z, EntityPlayer playe public void addItemToInventory (EntityPlayer player, World world, int x, int y, int z, ItemStack stack) { - AbilityHelper.spawnItemAtPlayer(player, stack); + if(!player.inventory.addItemStackToInventory(stack)) + { + // drop the rest as an item + AbilityHelper.spawnItemAtPlayer(player, stack); + } } @Override diff --git a/src/main/java/tconstruct/smeltery/logic/CastingBlockLogic.java b/src/main/java/tconstruct/smeltery/logic/CastingBlockLogic.java index 6429a1867ea..d971f348d94 100644 --- a/src/main/java/tconstruct/smeltery/logic/CastingBlockLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/CastingBlockLogic.java @@ -308,7 +308,7 @@ public void interact(EntityPlayer player) if(isStackInSlot(1)) slot = 1; - // Additional Info: Only 1 item can only be put into the casting block usually, however recipies + // Additional Info: Only 1 item can only be put into the casting block usually, however recipes // can have multiple blocks as output (compressed gravel -> brownstone for example) // we therefore spill the whole contents on extraction