Fix disenchanting lens deleting books

This commit is contained in:
Ellpeck 2016-12-22 21:08:46 +01:00
parent ad1768302f
commit a0d1c9042c

View file

@ -43,7 +43,7 @@ public class LensDisenchanting extends Lens{
for(EntityItem item : items){
if(item != null && !item.isDead){
ItemStack stack = item.getEntityItem();
if(StackUtil.isValid(stack)){
if(StackUtil.isValid(stack) && StackUtil.getStackSize(stack) == 1){
Item stackItem = stack.getItem();
if(stackItem == Items.BOOK || stackItem == Items.ENCHANTED_BOOK){
if(book == null){