Skip to content

Commit

Permalink
Fix major item dupe bug with Steve's Workshop;
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jaquadro committed May 9, 2015
1 parent 077b023 commit 724054c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public ItemStack getNativeStack () {
}

public ItemStack getInStack () {
if (inStack == null || inStack.stackSize == 0)
return null;

return inStack;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,8 @@ private void setInventorySlotContents (IDrawer drawer, ItemStack item) {

drawer.setStoredItemCount(insertCount);

if (upgrade.isVoid())
item.stackSize = 0;
else
item.stackSize -= insertCount;
if (!upgrade.isVoid())
item.stackSize = insertCount;
}
}

Expand Down

0 comments on commit 724054c

Please sign in to comment.