Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-16 04:50:08 +01:00
Fix ComponentRewriter1_20_5#convertFood behaviour (#4095)
Closes https://github.com/ViaVersion/ViaFabricPlus/issues/517
Dieser Commit ist enthalten in:
Ursprung
7d6599b90e
Commit
7d542d5667
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren