Remove special inventory-spawn-code in other blocks since it's handled by AbilityHelper now

This commit is contained in:
Bernhard Bonigl committed 2014-11-25 21:45:18 +01:00
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;