Fix ComponentRewriter1_20_5#convertFood behaviour (#4095)

Closes https://github.com/ViaVersion/ViaFabricPlus/issues/517
This commit is contained in:
EnZaXD 2024-08-14 15:26:22 +02:00 committed by GitHub
parent 7d6599b90e
commit 7d542d5667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -500,7 +500,7 @@ public class ComponentRewriter1_20_5<C extends ClientboundPacketType> 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);
}