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