mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-18 03:25:34 +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
+1
-1
@@ -17,7 +17,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.7.10-1.4.3"
|
||||
version = "1.7.10-1.4.5"
|
||||
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "StorageDrawers"
|
||||
|
||||
|
||||
@@ -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