diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-11-23 14:29:07 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-11-23 14:29:07 +1000 |
commit | b8dd731e4f8028cf46cb823c8904da7d4b13db6d (patch) | |
tree | 483ad2cc055e2eab68a4287d95ba618c051e6542 /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity | |
parent | 84c9fca5cb6878bfeda7bf819b8fe9b6b97fc98e (diff) | |
download | GT5-Unofficial-b8dd731e4f8028cf46cb823c8904da7d4b13db6d.tar.gz GT5-Unofficial-b8dd731e4f8028cf46cb823c8904da7d4b13db6d.tar.bz2 GT5-Unofficial-b8dd731e4f8028cf46cb823c8904da7d4b13db6d.zip |
- Removed some dead code from safes.
+ Added some log messages for #35 so that people can/will tell @Blood-asp about missing items. Since it's not my issue.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaSafeBlock.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaSafeBlock.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaSafeBlock.java index c574087020..2dfdd5a8c4 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaSafeBlock.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaSafeBlock.java @@ -5,7 +5,6 @@ import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.objects.GT_RenderedTexture; -import gregtech.api.util.GT_Utility; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.xmod.gregtech.api.gui.CONTAINER_SafeBlock; import gtPlusPlus.xmod.gregtech.api.gui.GUI_SafeBlock; @@ -47,23 +46,6 @@ public class GregtechMetaSafeBlock return aIndex < this.mInventory.length - 1; } - /*@Override - protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) { - fillStacksIntoFirstSlots(); - super.moveItems(aBaseMetaTileEntity, aTimer); - fillStacksIntoFirstSlots(); - }*/ - - protected void fillStacksIntoFirstSlots() { - for (int i = 0; i < this.mInventory.length - 1; i++) { - for (int j = i + 1; j < this.mInventory.length - 1; j++) { - if ((this.mInventory[j] != null) && ((this.mInventory[i] == null) || (GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) { - GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte) 64, (byte) 1, (byte) 64, (byte) 1); - } - } - } - } - @Override public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new CONTAINER_SafeBlock(aPlayerInventory, aBaseMetaTileEntity); |