Skip to content

Commit 4250462

Browse files
committed
fix clippy
1 parent 5520d8c commit 4250462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pumpkin/src/entity/hunger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl NBTStorage for HungerManager {
7171
// TODO: Proper value checks
7272

7373
async fn write_nbt(&self, nbt: &mut NbtCompound) {
74-
nbt.put_int("foodLevel", self.level.load() as i32);
74+
nbt.put_int("foodLevel", self.level.load().into());
7575
nbt.put_float("foodSaturationLevel", self.saturation.load());
7676
nbt.put_float("foodExhaustionLevel", self.exhaustion.load());
7777
nbt.put_int("foodTickTimer", self.tick_timer.load() as i32);

0 commit comments

Comments
 (0)