We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2efdd commit 9bdf60fCopy full SHA for 9bdf60f
1 file changed
src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/FluidIngredient.java
@@ -85,12 +85,13 @@ public JsonElement toJson() {
85
}
86
if (this.values.length == 1) {
87
jsonObject.add("value", this.values[0].serialize());
88
+ } else {
89
+ JsonArray jsonArray = new JsonArray();
90
+ for (FluidIngredient.Value value : this.values) {
91
+ jsonArray.add(value.serialize());
92
+ }
93
+ jsonObject.add("value", jsonArray);
94
- JsonArray jsonArray = new JsonArray();
- for (FluidIngredient.Value value : this.values) {
- jsonArray.add(value.serialize());
- }
- jsonObject.add("value", jsonArray);
95
return jsonObject;
96
97
0 commit comments