diff options
author | Connor Colenso <colen@CONNORSPC> | 2023-10-20 18:50:55 +0100 |
---|---|---|
committer | Martin Robertz <dream-master@gmx.net> | 2023-10-20 21:22:44 +0200 |
commit | eb97a4b9607acb85cda8cfd88ba900ca3df53ea6 (patch) | |
tree | fbcd19adce258bb6bac974a88f5289710799451a /src/main | |
parent | b5cfc6cb5c7a783970fdeccb5b4cd4dc593874a9 (diff) | |
download | GT5-Unofficial-eb97a4b9607acb85cda8cfd88ba900ca3df53ea6.tar.gz GT5-Unofficial-eb97a4b9607acb85cda8cfd88ba900ca3df53ea6.tar.bz2 GT5-Unofficial-eb97a4b9607acb85cda8cfd88ba900ca3df53ea6.zip |
Fix missing method
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java index 94ffbd3e5d..3c0683c03a 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java @@ -43,14 +43,25 @@ public class Parameters { this.parent = parent; } - public void trySetParameters(int hatch, double parameter0, double parameter1) { + public boolean trySetParameters(int hatch, double parameter0, double parameter1) { Group p = groups[hatch]; if (parent.mMaxProgresstime <= 0 || (p != null && p.updateWhileRunning)) { iParamsIn[hatch] = parameter0; iParamsIn[hatch + 10] = parameter1; + return true; } + return false; } + @SuppressWarnings("unused") // Used in GTNH-Intergalactic, do not delete. + public boolean trySetParameters(int hatchNo, int parameterId, double parameter) { + Group p = groups[hatchNo]; + if (parent.mMaxProgresstime <= 0 || (p != null && p.updateWhileRunning)) { + iParamsIn[hatchNo + 10 * parameterId] = parameter; + return true; + } + return false; + } public void setToDefaults(int hatch, boolean defaultIn, boolean defaultOut) { Group p = groups[hatch]; if (p == null) { |