mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 04:10:07 +00:00
fix incubator for real this time (#37)
This commit is contained in:
1 parent
ef877e2f7d
commit
6e6e806476
1 file changed
+3
-2
@@ -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