mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Remove special inventory-spawn-code in other blocks since it's handled by AbilityHelper now
This commit is contained in:
1 parent
158ae52dd8
commit
90e5d6af25
2 files changed
+2
-18
No files matched your search
@@ -98,7 +98,7 @@ public class DryingRack extends InventoryBlock
|
||||
{
|
||||
ItemStack decrStack = logic.decrStackSize(0, 1);
|
||||
if (decrStack != null)
|
||||
addItemToInventory(player, world, x, y, z, decrStack);
|
||||
AbilityHelper.spawnItemAtPlayer(player, decrStack);
|
||||
}
|
||||
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
@@ -106,15 +106,6 @@ public class DryingRack extends InventoryBlock
|
||||
return true;
|
||||
}
|
||||
|
||||
public void addItemToInventory (EntityPlayer player, World world, int x, int y, int z, ItemStack stack)
|
||||
{
|
||||
if(!player.inventory.addItemStackToInventory(stack))
|
||||
{
|
||||
// drop the rest as an item
|
||||
AbilityHelper.spawnItemAtPlayer(player, stack);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB getSelectedBoundingBoxFromPool (World world, int x, int y, int z)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user