mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +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
@@ -317,14 +317,7 @@ public abstract class CastingBlockLogic extends InventoryLogic implements IFluid
|
||||
|
||||
// try to transfer thes tack to the player inventory
|
||||
ItemStack output = event.item;
|
||||
if(!player.inventory.addItemStackToInventory(output))
|
||||
{
|
||||
// drop the rest as an item
|
||||
AbilityHelper.spawnItemAtPlayer(player, output);
|
||||
}
|
||||
// added to inventory, update inventory
|
||||
else
|
||||
player.inventory.markDirty();
|
||||
AbilityHelper.spawnItemAtPlayer(player, output);
|
||||
|
||||
// remove inventory contents, since we spilled the full contents of the slot
|
||||
inventory[slot] = null;
|
||||
|
||||
Reference in new issue
Block a user