From a0d1c9042cc0f992e42aacb4b0a52e51db4f064a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 22 Dec 2016 21:08:46 +0100 Subject: [PATCH] Fix disenchanting lens deleting books --- .../actuallyadditions/mod/items/lens/LensDisenchanting.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/lens/LensDisenchanting.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/lens/LensDisenchanting.java index 4381c1472..632e5cf12 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/lens/LensDisenchanting.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/lens/LensDisenchanting.java @@ -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){