Fix count of 2 in ghost slots

This commit is contained in:
Shadows_of_Fire 2018-06-23 13:27:08 -04:00
parent 0b4a870717
commit 5bbca0ee30

View file

@ -57,10 +57,12 @@ public class SlotFilter extends SlotItemHandlerUnconditioned{
}
else if(StackUtil.isValid(heldStack)){
if(!isFilter(stackInSlot)){
this.putStack(StackUtil.grow(heldStack.copy(), 1));
ItemStack s = heldStack.copy();
s.setCount(1);
this.putStack(s);
if(isFilter(heldStack)){
player.inventory.setItemStack(StackUtil.shrink(heldStack, 1));
heldStack.shrink(1);
}
}
}