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,7 +126,13 @@ public class ItemBag extends ItemBase{
}
}
}
item.setEntityItemStack(stack);
if(!StackUtil.isValid(stack)){
item.setDead();
}
else{
item.setEntityItemStack(stack);
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4 KiB