mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Fix ComponentRewriter1_20_5#convertFood behaviour (#4095)
Closes https://github.com/ViaVersion/ViaFabricPlus/issues/517
This commit is contained in:
parent
7d6599b90e
commit
7d542d5667
@ -500,7 +500,7 @@ public class ComponentRewriter1_20_5<C extends ClientboundPacketType> extends Co
|
|||||||
protected CompoundTag convertFood(final FoodProperties value) {
|
protected CompoundTag convertFood(final FoodProperties value) {
|
||||||
final CompoundTag tag = new CompoundTag();
|
final CompoundTag tag = new CompoundTag();
|
||||||
tag.put("nutrition", convertNonNegativeInt(value.nutrition()));
|
tag.put("nutrition", convertNonNegativeInt(value.nutrition()));
|
||||||
tag.putFloat("saturation_modifier", value.saturationModifier());
|
tag.putFloat("saturation", value.saturationModifier());
|
||||||
if (value.canAlwaysEat()) {
|
if (value.canAlwaysEat()) {
|
||||||
tag.putBoolean("can_always_eat", true);
|
tag.putBoolean("can_always_eat", true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user