From 1438d4ba8a02aa1dc570c9c599a3014ccec2a6ca Mon Sep 17 00:00:00 2001 From: Tec Date: Sun, 9 Jun 2019 20:56:23 +0200 Subject: Fix default paremeter setting --- .../technus/tectech/thing/metaTileEntity/multi/base/Parameters.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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; -- cgit