Skip to content

Commit 326309d

Browse files
committed
minor recipe data refactor
1 parent 33ba621 commit 326309d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

run/kubejs/server_scripts/PrismaC_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ServerEvents.recipes(event =>{
2828
.itemInputs("minecraft:dirt")
2929
.EUt(128)
3030
.duration(100)
31-
.outputStatesSpecial(SpecialCase.ANY)
31+
.outputStatesRelative(1)
3232

3333
event.recipes.gtceu.prismatic_crucible("test5")
3434
.inputColor(PrismaticColor.TERTIARY)

src/main/java/net/neganote/monilabs/common/machine/multiblock/PrismaticCrucibleMachine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ public void afterWorking() {
123123

124124
int newKey;
125125

126-
int outputStatesCount = recipe.data.getInt("output_states");
127126
if (recipe.data.contains("output_states")) {
127+
int outputStatesCount = recipe.data.getInt("output_states");
128128
if (outputStatesCount == 1) { // Deterministic
129129
newKey = recipe.data.getInt("output_states_0");
130130

131-
} else if (outputStatesCount == Color.COLOR_COUNT) { // Full random
131+
} else if (outputStatesCount == Color.ACTUAL_COLOR_COUNT) { // Full random
132132
newKey = Color.getRandomColor();
133133

134134
} else { // Random Among List
@@ -139,7 +139,7 @@ public void afterWorking() {
139139
}
140140

141141
if (recipe.data.contains("color_change_relative") && recipe.data.getBoolean("color_change_relative")) {
142-
newKey = (color.key + newKey) % Color.COLOR_COUNT;
142+
newKey = (color.key + newKey) % Color.ACTUAL_COLOR_COUNT;
143143
}
144144
} else {
145145
newKey = Color.getRandomColor();

0 commit comments

Comments
 (0)