aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/Parameters.java6
1 files changed, 3 insertions, 3 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 33d4dd9899..1ecb17891e 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
@@ -165,12 +165,12 @@ public class Parameters {
if (this.parameterOut[0] != null) {
this.parameterOut[0].setDefault();
} else {
- iParamsIn[hatchNo] = 0;
+ iParamsOut[hatchNo] = 0;
}
if (this.parameterOut[1] != null) {
this.parameterOut[1].setDefault();
} else {
- iParamsIn[hatchNo + 10] = 0;
+ iParamsOut[hatchNo + 10] = 0;
}
}
}
@@ -267,7 +267,7 @@ public class Parameters {
if(paramID<0 || paramID>2){
throw new IllegalArgumentException("Parameter id must be in 0 to 1 range");
}
- if(parameterOut[paramID]!=null){
+ if(parameterIn[paramID]!=null){
throw new IllegalArgumentException("Parameter id already occupied");
}
this.defaultValue=defaultValue;