diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-11-12 00:28:39 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-11-12 00:28:39 +1000 |
commit | bfc8a3974fc3d6c147d52a91d9c21b501cdce45f (patch) | |
tree | 1eda2e43cc70bfe07b698b4f818460cd45a69eb8 /src/Java/gtPlusPlus/core/tileentities/machines | |
parent | 16fb3af747e73e6f37781df893a6751973e274ab (diff) | |
download | GT5-Unofficial-bfc8a3974fc3d6c147d52a91d9c21b501cdce45f.tar.gz GT5-Unofficial-bfc8a3974fc3d6c147d52a91d9c21b501cdce45f.tar.bz2 GT5-Unofficial-bfc8a3974fc3d6c147d52a91d9c21b501cdce45f.zip |
% Allowed Modular upgrades to stack up to 64.
$ Fixed upgrade stacks being consumed in one go.
$ Fixed Icon not correctly aligning to bauble type.
+ Added a matching ring bauble texture.
Diffstat (limited to 'src/Java/gtPlusPlus/core/tileentities/machines')
-rw-r--r-- | src/Java/gtPlusPlus/core/tileentities/machines/TileEntityModularityTable.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityModularityTable.java b/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityModularityTable.java index 39bef9b11a..15116e8fc1 100644 --- a/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityModularityTable.java +++ b/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityModularityTable.java @@ -90,8 +90,16 @@ public class TileEntityModularityTable extends TileEntity { if (removeInputA && removeInputB){ Utils.LOG_INFO("set new Modular bauble"); + if (this.inventoryOutputs.getStackInSlot(1).stackSize > 1){ + ItemStack mTempStack = this.inventoryOutputs.getStackInSlot(1); + mTempStack.stackSize--; + this.inventoryOutputs.setInventorySlotContents(1, mTempStack); + } + else { + this.inventoryOutputs.setInventorySlotContents(1, null); + + } this.inventoryOutputs.setInventorySlotContents(0, null); - this.inventoryOutputs.setInventorySlotContents(1, null); this.inventoryOutputs.setInventorySlotContents(2, tBauble); } else { @@ -166,7 +174,9 @@ public class TileEntityModularityTable extends TileEntity { Entry<ItemStack, BT> pair = it.next(); if (pair.getKey().getItem() == tStack.getItem() && pair.getKey().getItemDamage() == tStack.getItemDamage()){ - ModularArmourUtils.setBaubleType(tBauble, mValidUpgradeListFormChange.get(tStack).getThis()); + ModularArmourUtils.setBaubleType(tBauble, pair.getValue()); + tBauble.setItemDamage(ModularArmourUtils.getBaubleTypeID(tBauble)); + //ModularArmourUtils.setBaubleType(tBauble, mValidUpgradeListFormChange.get(tStack).getThis()); return true; } } |