From b5ecbb982affd1fb6caaae0fa3991b0ef40d8fb4 Mon Sep 17 00:00:00 2001 From: garantiertnicht Weichware Date: Tue, 8 Nov 2016 18:22:08 +0100 Subject: [PATCH] Make Item Filler work with Bocks that only have meta when placed in world. (#340) * Made Filler Wand work with Meta you cant obtain in your inventory, and removed unused- and unexisting imports from the Laser Relay Tile Entity * Revert "Made Filler Wand work with Meta you cant obtain in your inventory, and removed unused- and unexisting imports from the Laser Relay Tile Entity" I dont think I should touch imports, so I revert this commit and re-commit only the ItemFiller. This reverts commit e71769d7d76cbb72c4b7ec3dba2fe7ccd25f1ed5. * Made Filler Wand work with Meta you cant obtain in your inventory (again) --- .../de/ellpeck/actuallyadditions/mod/items/ItemFillingWand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemFillingWand.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemFillingWand.java index 00d17b809..b4654d472 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemFillingWand.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemFillingWand.java @@ -201,7 +201,7 @@ public class ItemFillingWand extends ItemEnergy{ private static boolean removeFittingItem(IBlockState state, EntityPlayer player){ Block block = state.getBlock(); - ItemStack stack = new ItemStack(block, 1, block.getMetaFromState(state)); + ItemStack stack = new ItemStack(block, 1, block.damageDropped(state)); if(stack != null && stack.getItem() != null){ for(int i = 0; i < player.inventory.getSizeInventory(); i++){