mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
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:
parent
1a9a69a4bd
commit
b5ecbb982a
1 changed files with 1 additions and 1 deletions
|
@ -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++){
|
||||
|
|
Loading…
Reference in a new issue