mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-13 03:49:09 +01:00
Fix disenchanting lens deleting books
This commit is contained in:
parent
ad1768302f
commit
a0d1c9042c
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue