Skip to content

Commit 6f0fbae

Browse files
authored
Make groupColor optional even if KubeJS isn't loaded (#4684)
1 parent 4acaf3d commit 6f0fbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gregtechceu/gtceu/api/recipe/GTRecipeSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private static Codec<GTRecipe> makeCodec(boolean isKubeLoaded) {
208208
CompoundTag.CODEC.optionalFieldOf("data", new CompoundTag()).forGetter(val -> val.data),
209209
ExtraCodecs.NON_NEGATIVE_INT.fieldOf("duration").forGetter(val -> val.duration),
210210
GTRegistries.RECIPE_CATEGORIES.codec().optionalFieldOf("category", GTRecipeCategory.DEFAULT).forGetter(val -> val.recipeCategory),
211-
Codec.INT.fieldOf("groupColor").forGetter(val -> val.groupColor))
211+
Codec.INT.optionalFieldOf("groupColor", -1).forGetter(val -> val.groupColor))
212212
.apply(instance, (type,
213213
inputs, outputs, tickInputs, tickOutputs,
214214
inputChanceLogics, outputChanceLogics, tickInputChanceLogics, tickOutputChanceLogics,

0 commit comments

Comments
 (0)