Skip to content

Commit

Permalink
fixed fluidstack amount saving to json in machine recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Mar 23, 2023
1 parent 2390dc7 commit bb4bbc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void deserialize() {
public static JsonElement serializeStack(FluidStack stack) {
JsonObject obj = new JsonObject();
obj.addProperty("fluid", FluidPlatformUtils.getFluidId(stack.getFluid()).toString());
obj.addProperty("amount", stack.getAmount());
obj.addProperty("amount", stack.getRealAmount());
if (stack.hasTag()) {
obj.add("tag", NbtOps.INSTANCE.convertTo(JsonOps.INSTANCE, stack.getTag()));
}
Expand Down

0 comments on commit bb4bbc9

Please sign in to comment.