diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-11-25 14:30:38 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-11-25 14:30:38 +1000 |
commit | 933c84cb90df6505e429121197e4633194e7d0c4 (patch) | |
tree | 346d97da47cd64256740633515f506dd7203c07d /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines | |
parent | f5cd238851afb2eb61ebf3c2f183682766403167 (diff) | |
download | GT5-Unofficial-933c84cb90df6505e429121197e4633194e7d0c4.tar.gz GT5-Unofficial-933c84cb90df6505e429121197e4633194e7d0c4.tar.bz2 GT5-Unofficial-933c84cb90df6505e429121197e4633194e7d0c4.zip |
+ Added a configuration option for every custom pipe, cable/wire & machines, singular and multi-block type (A few non-machine things aren't configurable still, but on the to-do)
% Changed the scanner results when used on a Multi-tank controller.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java index 020ce2c788..810ff85382 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_MultiTank.java @@ -36,8 +36,8 @@ extends GregtechMeta_MultiBlockBase { } private long fluidStored = 0; - private short multiblockCasingCount = 0; - private short storageMultiplier = getStorageMultiplier(); + private int multiblockCasingCount = 0; + private int storageMultiplier = getStorageMultiplier(); private long maximumFluidStorage = getMaximumTankStorage(); private FluidStack internalStorageTank = null; @@ -49,25 +49,21 @@ extends GregtechMeta_MultiBlockBase { if (internalStorageTank == null) { return new String[]{ GT_Values.VOLTAGE_NAMES[temp]+" Large Fluid Tank", - "Stored Fluid:", - "No Fluid", - Integer.toString(0) + "L", - Integer.toString(getCapacity()) + "L"}; + "Stored Fluid: No Fluid", + "Internal | Current: "+Integer.toString(0) + "L", + "Internal | Maximum: "+Integer.toString((int) maximumFluidStorage) + "L"}; } return new String[]{ GT_Values.VOLTAGE_NAMES[temp]+" Large Fluid Tank", - "Stored Fluid:", - internalStorageTank.getLocalizedName(), - Integer.toString(internalStorageTank.amount) + "L", - Integer.toString((int) fluidStored) + "L - fluidStored var", - Integer.toString(getCapacity()) + "L"}; + "Stored Fluid: "+internalStorageTank.getLocalizedName(), + "Internal | Current: "+Integer.toString(internalStorageTank.amount) + "L", + "Internal | Maximum: "+Integer.toString((int) maximumFluidStorage) + "L"}; } return new String[]{ "Voltage Tier not set -" +" Large Fluid Tank", - "Stored Fluid:", - "No Fluid", - Integer.toString(0) + "L", - Integer.toString(getCapacity()) + "L"}; + "Stored Fluid: No Fluid", + "Internal | Current: "+Integer.toString(0) + "L", + "Internal | Maximum: "+Integer.toString((int) maximumFluidStorage) + "L"}; } @Override @@ -80,9 +76,9 @@ extends GregtechMeta_MultiBlockBase { aNBT.setInteger("mPollution", mPollution); aNBT.setInteger("mRuntime", mRuntime); aNBT.setLong("mFluidStored", fluidStored); - aNBT.setShort("mStorageMultiplier", storageMultiplier); + aNBT.setInteger("mStorageMultiplier", storageMultiplier); aNBT.setLong("mMaxFluidStored", maximumFluidStorage); - aNBT.setShort("mCasingCount", multiblockCasingCount); + aNBT.setInteger("mCasingCount", multiblockCasingCount); if (mOutputItems != null) for (int i = 0; i < mOutputItems.length; i++) if (mOutputItems[i] != null) { @@ -108,6 +104,7 @@ extends GregtechMeta_MultiBlockBase { private short getStorageMultiplier(){ int tempstorageMultiplier = (1*multiblockCasingCount); if (tempstorageMultiplier <= 0){ + Utils.LOG_INFO("Invalid Storage Multiplier. "+multiblockCasingCount); return 1; } return (short) tempstorageMultiplier; @@ -136,9 +133,9 @@ extends GregtechMeta_MultiBlockBase { mPollution = aNBT.getInteger("mPollution"); mRuntime = aNBT.getInteger("mRuntime"); fluidStored = aNBT.getLong("mFluidStored"); - storageMultiplier = aNBT.getShort("mStorageMultiplier"); + storageMultiplier = aNBT.getInteger("mStorageMultiplier"); maximumFluidStorage = aNBT.getLong("mMaxFluidStored"); - multiblockCasingCount = aNBT.getShort("mCasingCount"); + multiblockCasingCount = aNBT.getInteger("mCasingCount"); mOutputItems = new ItemStack[getAmountOfOutputs()]; for (int i = 0; i < mOutputItems.length; i++) mOutputItems[i] = GT_Utility.loadItem(aNBT, "mOutputItem" + i); mOutputFluids = new FluidStack[getAmountOfOutputs()]; @@ -401,7 +398,7 @@ extends GregtechMeta_MultiBlockBase { } } } - multiblockCasingCount = (short) tAmount; + multiblockCasingCount = tAmount; Utils.LOG_INFO("Your Multitank can be 20 blocks tall."); Utils.LOG_INFO("Casings Count: "+tAmount+" Valid Multiblock: "+(tAmount >= 16)+" Tank Storage Capacity:"+getMaximumTankStorage()+"L"); return tAmount >= 16; |