mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 15:03:14 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e6e806476 |
@@ -122,7 +122,7 @@ public class TransferRequest {
|
|||||||
|| ((IInventorySlots) destination).getSlot(slot) == null
|
|| ((IInventorySlots) destination).getSlot(slot) == null
|
||||||
|| !((IInventorySlots) destination).getSlot(slot).isRecipe()) {
|
|| !((IInventorySlots) destination).getSlot(slot).isRecipe()) {
|
||||||
if (destination.getStackInSlot(slot) != null) {
|
if (destination.getStackInSlot(slot) != null) {
|
||||||
if (item.isStackable()) {
|
if (item.isStackable() && destination.getInventoryStackLimit() > 1) {
|
||||||
ItemStack merged = destination.getStackInSlot(slot).copy();
|
ItemStack merged = destination.getStackInSlot(slot).copy();
|
||||||
ItemStack[] newStacks = mergeStacks(item.copy(), merged.copy());
|
ItemStack[] newStacks = mergeStacks(item.copy(), merged.copy());
|
||||||
item = newStacks[0];
|
item = newStacks[0];
|
||||||
@@ -158,8 +158,9 @@ public class TransferRequest {
|
|||||||
if (item.stackSize <= 0) {
|
if (item.stackSize <= 0) {
|
||||||
item = null;
|
item = null;
|
||||||
}
|
}
|
||||||
|
return item;
|
||||||
}
|
}
|
||||||
return item;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user