From 7d542d5667da8dd8789074dd52bb83cf8fffa492 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Wed, 14 Aug 2024 15:26:22 +0200 Subject: [PATCH] Fix ComponentRewriter1_20_5#convertFood behaviour (#4095) Closes https://github.com/ViaVersion/ViaFabricPlus/issues/517 --- .../v1_20_3to1_20_5/rewriter/ComponentRewriter1_20_5.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/ComponentRewriter1_20_5.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/ComponentRewriter1_20_5.java index aaec676c0..df6d52524 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/ComponentRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/ComponentRewriter1_20_5.java @@ -500,7 +500,7 @@ public class ComponentRewriter1_20_5 extends Co protected CompoundTag convertFood(final FoodProperties value) { final CompoundTag tag = new CompoundTag(); tag.put("nutrition", convertNonNegativeInt(value.nutrition())); - tag.putFloat("saturation_modifier", value.saturationModifier()); + tag.putFloat("saturation", value.saturationModifier()); if (value.canAlwaysEat()) { tag.putBoolean("can_always_eat", true); }