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 e71769d7d7.

* Made Filler Wand work with Meta you cant obtain in your inventory (again)
This commit is contained in:
garantiertnicht Weichware 2016-11-08 18:22:08 +01:00 committed by Ellpeck
parent 1a9a69a4bd
commit b5ecbb982a

View file

@ -201,7 +201,7 @@ public class ItemFillingWand extends ItemEnergy{
private static boolean removeFittingItem(IBlockState state, EntityPlayer player){ private static boolean removeFittingItem(IBlockState state, EntityPlayer player){
Block block = state.getBlock(); 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){ if(stack != null && stack.getItem() != null){
for(int i = 0; i < player.inventory.getSizeInventory(); i++){ for(int i = 0; i < player.inventory.getSizeInventory(); i++){