mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-23 21:49:39 +00:00
Fix major item dupe bug with Steve's Workshop;
Fix item insertion bug with Steve's Workshop; Inserting items from pipes/sided inventory will trigger conversion until drawer has less than 1 stack of capacity.
This commit is contained in:
1 parent
077b023cff
commit
724054c19b
3 files changed
+6
-5
No files matched your search
@@ -33,6 +33,9 @@ public abstract class InventoryStack
|
||||
}
|
||||
|
||||
public ItemStack getInStack () {
|
||||
if (inStack == null || inStack.stackSize == 0)
|
||||
return null;
|
||||
|
||||
return inStack;
|
||||
}
|
||||
|
||||
|
||||
@@ -228,10 +228,8 @@ public class StorageInventory implements IDrawerInventory
|
||||
|
||||
drawer.setStoredItemCount(insertCount);
|
||||
|
||||
if (upgrade.isVoid())
|
||||
item.stackSize = 0;
|
||||
else
|
||||
item.stackSize -= insertCount;
|
||||
if (!upgrade.isVoid())
|
||||
item.stackSize = insertCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user