We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5520d8c commit 4250462Copy full SHA for 4250462
pumpkin/src/entity/hunger.rs
@@ -71,7 +71,7 @@ impl NBTStorage for HungerManager {
71
// TODO: Proper value checks
72
73
async fn write_nbt(&self, nbt: &mut NbtCompound) {
74
- nbt.put_int("foodLevel", self.level.load() as i32);
+ nbt.put_int("foodLevel", self.level.load().into());
75
nbt.put_float("foodSaturationLevel", self.saturation.load());
76
nbt.put_float("foodExhaustionLevel", self.exhaustion.load());
77
nbt.put_int("foodTickTimer", self.tick_timer.load() as i32);
0 commit comments