diff options
| author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-09-14 00:27:35 +0200 |
|---|---|---|
| committer | boubou19 <miisterunknown@gmail.com> | 2024-09-17 22:55:46 +0200 |
| commit | 9e74ed7a31b9bdfe41f337d93ec719f5ac6d4a3e (patch) | |
| tree | 3c77fa7c93dd017c3fb68b3007fd6b57fb75461f /src/main/java/bartworks/common | |
| parent | 257a023d03e8d3c63d12847c03392cc806665e6a (diff) | |
| download | GT5-Unofficial-9e74ed7a31b9bdfe41f337d93ec719f5ac6d4a3e.tar.gz GT5-Unofficial-9e74ed7a31b9bdfe41f337d93ec719f5ac6d4a3e.tar.bz2 GT5-Unofficial-9e74ed7a31b9bdfe41f337d93ec719f5ac6d4a3e.zip | |
remove unnecessary reflection since the mods are now merged all together
Diffstat (limited to 'src/main/java/bartworks/common')
| -rw-r--r-- | src/main/java/bartworks/common/tileentities/multis/MTEDeepEarthHeatingPump.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/main/java/bartworks/common/tileentities/multis/MTEDeepEarthHeatingPump.java b/src/main/java/bartworks/common/tileentities/multis/MTEDeepEarthHeatingPump.java index d558e5466b..b9ab023dae 100644 --- a/src/main/java/bartworks/common/tileentities/multis/MTEDeepEarthHeatingPump.java +++ b/src/main/java/bartworks/common/tileentities/multis/MTEDeepEarthHeatingPump.java @@ -190,11 +190,7 @@ public class MTEDeepEarthHeatingPump extends MTEDrillerBase { int yHead, int oldYHead) { if (this.mMode != 3) { this.isPickingPipes = false; - try { - Field workState = this.getClass() - .getField("workState"); - workState.setInt(this, 0); - } catch (NoSuchFieldError | NoSuchFieldException | IllegalAccessException ignored) {} + this.workState = 0; return true; } return super.workingUpward(aStack, xDrill, yDrill, zDrill, xPipe, zPipe, yHead, oldYHead); @@ -215,12 +211,7 @@ public class MTEDeepEarthHeatingPump extends MTEDrillerBase { int yHead, int oldYHead) { if (this.mMode == 3) { this.isPickingPipes = true; - try { - Field workState = this.getClass() - .getSuperclass() - .getDeclaredField("workState"); - workState.setInt(this, 2); - } catch (NoSuchFieldError | NoSuchFieldException | IllegalAccessException ignored) {} + this.workState = 2; return true; } |
