Fixed the bag "leaking" items

Closes #373
This commit is contained in:
Ellpeck 2016-11-18 20:52:33 +01:00
parent 0481a56794
commit 4666f6d4ea
2 changed files with 7 additions and 1 deletions

View file

@ -126,9 +126,15 @@ public class ItemBag extends ItemBase{
}
}
}
if(!StackUtil.isValid(stack)){
item.setDead();
}
else{
item.setEntityItemStack(stack);
}
}
}
@Override
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ){

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4 KiB