@@ -80,13 +80,13 @@
|
||||
+ ItemStack itemstack1 = this.getItem(i);
|
||||
+ if (itemstack1.isEmpty()) return itemstack.getCount();
|
||||
+
|
||||
+ if (this.a(itemstack1, itemstack)) { // PAIL rename isSimilarAndNotFull
|
||||
+ if (this.isSimilarAndNotFull(itemstack1, itemstack)) {
|
||||
+ remains -= (itemstack1.getMaxStackSize() < this.getMaxStackSize() ? itemstack1.getMaxStackSize() : this.getMaxStackSize()) - itemstack1.getCount();
|
||||
+ }
|
||||
+ if (remains <= 0) return itemstack.getCount();
|
||||
+ }
|
||||
+ ItemStack offhandItemStack = this.getItem(this.items.size() + this.armor.size());
|
||||
+ if (this.a(offhandItemStack, itemstack)) {
|
||||
+ if (this.isSimilarAndNotFull(offhandItemStack, itemstack)) {
|
||||
+ remains -= (offhandItemStack.getMaxStackSize() < this.getMaxStackSize() ? offhandItemStack.getMaxStackSize() : this.getMaxStackSize()) - offhandItemStack.getCount();
|
||||
+ }
|
||||
+ if (remains <= 0) return itemstack.getCount();
|
||||
|
||||
Reference in New Issue
Block a user