diff options
| author | Steelux <70096037+Steelux8@users.noreply.github.com> | 2022-08-29 17:37:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-29 17:37:36 +0100 |
| commit | a518e9fa13878c80a7382b4f0a460003865b3596 (patch) | |
| tree | 8aca6354c0d5115fca781c92ca02c75b277849a8 /src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc | |
| parent | 7d1f51a8937e0a86486267437d444696e81e8aa0 (diff) | |
| download | GT5-Unofficial-a518e9fa13878c80a7382b4f0a460003865b3596.tar.gz GT5-Unofficial-a518e9fa13878c80a7382b4f0a460003865b3596.tar.bz2 GT5-Unofficial-a518e9fa13878c80a7382b4f0a460003865b3596.zip | |
Bugfix and Rework of the GT++ Solar Tower (#290)
* Bugfix and Rework of the Solar Tower
- Fixed several bugs that prevented the solar tower from recognizing the reflectors;
- Added more information on the tooltip;
- Reworked the math behind internal heat, and conversion from Cold to Hot Solar Salt;
- Removed some MathUtils logs that spammed a log every tick if GT++ logs were enabled;
- Changed the values in the conversion from Hot Solar Salt to SH Steam.
* Fix Tooltip, Refactor Math
* Additional Fixes
* spotlessApply (#319)
Co-authored-by: Steelux <70096037+Steelux8@users.noreply.github.com>
Co-authored-by: GitHub GTNH Actions <>
* Revert "spotlessApply (#319)"
This reverts commit d75249d1e98a4f99db072548263065983f86b3a3.
* fix
Co-authored-by: kuba6000 <kuba.123123.6000@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc')
| -rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java index cc1592cdaa..5360ba612a 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java @@ -247,22 +247,25 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock @Override public void saveNBTData(NBTTagCompound aNBT) { - aNBT.setBoolean("mHasTower", mHasTower); - if (mHasTower) { - aNBT.setInteger("mTX", mTX); - aNBT.setInteger("mTY", mTY); - aNBT.setInteger("mTZ", mTZ); - } + /*aNBT.setBoolean("mHasTower", mHasTower); + if (this.mHasTower) { + aNBT.setInteger("mTX", mTX); + aNBT.setInteger("mTY", mTY); + aNBT.setInteger("mTZ", mTZ); + }*/ } @Override public void loadNBTData(NBTTagCompound aNBT) { - this.mHasTower = aNBT.getBoolean("mHasTower"); + /*this.mHasTower = aNBT.getBoolean("mHasTower"); if (this.mHasTower) { - if (aNBT.hasKey("mTX")) this.mTX = aNBT.getInteger("mTX"); - if (aNBT.hasKey("mTY")) this.mTY = aNBT.getInteger("mTY"); - if (aNBT.hasKey("mTZ")) this.mTZ = aNBT.getInteger("mTZ"); - } + if (aNBT.hasKey("mTX")) + this.mTX = aNBT.getInteger("mTX"); + if (aNBT.hasKey("mTY")) + this.mTY = aNBT.getInteger("mTY"); + if (aNBT.hasKey("mTZ")) + this.mTZ = aNBT.getInteger("mTZ"); + }*/ } @Override @@ -299,7 +302,7 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock .getWorld() .canBlockSeeTheSky( this.getBaseMetaTileEntity().getXCoord(), - this.getBaseMetaTileEntity().getYCoord(), + this.getBaseMetaTileEntity().getYCoord() + 1, this.getBaseMetaTileEntity().getZCoord())) { return true; } |
