diff options
| author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-10-02 07:31:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-02 05:31:08 +0000 |
| commit | 3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3 (patch) | |
| tree | 107d9d2442891990ef1cdef1d8bb2df6bb96952a /src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc | |
| parent | bfc7b2b07f72d0903a70791ff96f9c837ddd5ff0 (diff) | |
| download | GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.gz GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.bz2 GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.zip | |
Cleanup the codebase (#3311)
Co-authored-by: boubou19 <miisterunknown@gmail.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/MTESolarHeater.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/MTESolarHeater.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/MTESolarHeater.java index 64925c9bb1..45721139bb 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/MTESolarHeater.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/MTESolarHeater.java @@ -266,7 +266,7 @@ public class MTESolarHeater extends MTETieredMachineBlock { } public boolean canSeeSky() { - if (this.getBaseMetaTileEntity() + return this.getBaseMetaTileEntity() .getWorld() .canBlockSeeTheSky( this.getBaseMetaTileEntity() @@ -274,17 +274,14 @@ public class MTESolarHeater extends MTETieredMachineBlock { this.getBaseMetaTileEntity() .getYCoord() + 1, this.getBaseMetaTileEntity() - .getZCoord())) { - return true; - } - return false; + .getZCoord()); } public boolean setSolarTower(MTESolarTower aTowerTile) { if (!hasSolarTower()) { this.mTX = aTowerTile.getBaseMetaTileEntity() .getXCoord(); - this.mTY = (int) aTowerTile.getBaseMetaTileEntity() + this.mTY = aTowerTile.getBaseMetaTileEntity() .getYCoord(); this.mTZ = aTowerTile.getBaseMetaTileEntity() .getZCoord(); |
