aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-17 19:08:03 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-07-17 19:08:03 +1000
commit0b2a7c1b97f264159cc4616f48f2537db137973f (patch)
treeebfbe6572d536854ecc88154debbf4460c62c4bd /src/Java/gtPlusPlus/xmod/gregtech/api
parent93ebe8f61c8318f18ffd33e4b60347ed366812d5 (diff)
downloadGT5-Unofficial-0b2a7c1b97f264159cc4616f48f2537db137973f.tar.gz
GT5-Unofficial-0b2a7c1b97f264159cc4616f48f2537db137973f.tar.bz2
GT5-Unofficial-0b2a7c1b97f264159cc4616f48f2537db137973f.zip
$ Fixed capes not displaying differently for other players.
$ Fixed Charging Hatches displaying wrong inventory size. Closes #332.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java17
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java17
2 files changed, 30 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
index 6f60a71c77..57f8b722c3 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
@@ -38,8 +38,21 @@ GT_MetaTileEntity_Hatch {
}
@Override
- public String[] getDescription() {
- return new String[]{this.mDescription, "Capacity: " + getSlots(this.mTier) + " stack"+ (getSlots(this.mTier) >= 2 ? "s" : ""), CORE.GT_Tooltip};
+ public String[] getDescription() {
+ int mSlots = 0;
+ if (this.mTier == 2) {
+ mSlots = 4;
+ }
+ else if (this.mTier == 4) {
+ mSlots = 16;
+ }
+ else {
+ mSlots = 16;
+ }
+ return new String[]{
+ this.mDescription,
+ "Capacity: " + mSlots + " slots",
+ CORE.GT_Tooltip};
}
@Override
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
index cda5336a7a..ba97cc38eb 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
@@ -36,8 +36,21 @@ GT_MetaTileEntity_Hatch {
@Override
- public String[] getDescription() {
- return new String[]{this.mDescription, "Capacity: " + getSlots(this.mTier) + " stack"+ (getSlots(this.mTier) >= 2 ? "s" : ""), CORE.GT_Tooltip};
+ public String[] getDescription() {
+ int mSlots = 0;
+ if (this.mTier == 2) {
+ mSlots = 4;
+ }
+ else if (this.mTier == 4) {
+ mSlots = 16;
+ }
+ else {
+ mSlots = 16;
+ }
+ return new String[]{
+ this.mDescription,
+ "Capacity: " + mSlots + " slots",
+ CORE.GT_Tooltip};
}
@Override