Skip to content

Commit

Permalink
Fix issues with serialization (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Oct 13, 2024
1 parent a4a2729 commit aa41aba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ public boolean extractFrom(IFluidTransfer handler, boolean simulate) {
return false;
}

@Override
@NotNull
public IIngredientSerializer<? extends Ingredient> getSerializer() {
return SERIALIZER;
}

public static FluidContainerIngredient fromJson(JsonObject json) {
return SERIALIZER.parse(json);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public JsonObject serialize() {
public RecipeCondition deserialize(@NotNull JsonObject config) {
super.deserialize(config);
dimension = new ResourceLocation(
GsonHelper.getAsString(config, "dim", "dummy"));
GsonHelper.getAsString(config, "dimension", "dummy"));
return this;
}

Expand Down

0 comments on commit aa41aba

Please sign in to comment.