increased utility of string matching using '~'
This commit is contained in:
1 parent
677ff2da90
commit
c4c268b079
4 files changed
+39
-4
No files matched your search
@@ -29,7 +29,7 @@ public abstract class PlayerInventory_scarpetEventMixin
|
||||
Item item = stack.getItem();
|
||||
int count = stack.getCount();
|
||||
boolean res = playerInventory.insertStack(-1, stack);
|
||||
if (res)
|
||||
if (count != stack.getCount()) // res returns false for larger item adding to a almost full ineventory
|
||||
{
|
||||
ItemStack diffStack = new ItemStack(item, count - stack.getCount());
|
||||
diffStack.setTag(stack.getTag());
|
||||
|
||||
Reference in new issue
Block a user