mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Fix count of 2 in ghost slots
This commit is contained in:
parent
0b4a870717
commit
5bbca0ee30
1 changed files with 4 additions and 2 deletions
|
@ -57,10 +57,12 @@ public class SlotFilter extends SlotItemHandlerUnconditioned{
|
||||||
}
|
}
|
||||||
else if(StackUtil.isValid(heldStack)){
|
else if(StackUtil.isValid(heldStack)){
|
||||||
if(!isFilter(stackInSlot)){
|
if(!isFilter(stackInSlot)){
|
||||||
this.putStack(StackUtil.grow(heldStack.copy(), 1));
|
ItemStack s = heldStack.copy();
|
||||||
|
s.setCount(1);
|
||||||
|
this.putStack(s);
|
||||||
|
|
||||||
if(isFilter(heldStack)){
|
if(isFilter(heldStack)){
|
||||||
player.inventory.setItemStack(StackUtil.shrink(heldStack, 1));
|
heldStack.shrink(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue