3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 00:22:51 +01:00

Fix ComponentRewriter1_20_5#convertFood behaviour (#4095)

Closes https://github.com/ViaVersion/ViaFabricPlus/issues/517
Dieser Commit ist enthalten in:
EnZaXD 2024-08-14 15:26:22 +02:00 committet von GitHub
Ursprung 7d6599b90e
Commit 7d542d5667
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -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);
}