Skip to content

Commit

Permalink
Fix upgrades not being able to be properly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Jul 8, 2017
1 parent 08176d1 commit f77d9e5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ jar {
include "com/jaquadro/minecraft/storagedrawers/**"
include "assets/**"
include "mcmod.info"
include "pack.mcmeta"
}

task deobfJar(type: Jar) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G

minecraft_base_version=1.12
minecraft_version=1.12
mod_version=5.2.3
mod_version=5.2.4
chameleon_version=4.1.0
chameleon_max_version=5.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public boolean setUpgrade (int slot, @Nonnull ItemStack upgrade) {
upgrades[slot] = ItemStack.EMPTY;
syncStorageMultiplier();

if (!canAddUpgrade(upgrade)) {
if (!upgrade.isEmpty() && !canAddUpgrade(upgrade)) {
upgrades[slot] = prevUpgrade;
syncStorageMultiplier();
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public class InventoryUpgrade implements IInventory
{
private static final int upgradeCapacity = 5;
private static final int upgradeCapacity = 7;

private TileEntityDrawers tile;

Expand Down

0 comments on commit f77d9e5

Please sign in to comment.