Skip to content

Commit

Permalink
Reset the air of respawning players
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Jul 8, 2024
1 parent 5e8683d commit 50de441
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ private ActionResult onPlayerDeath(ServerPlayerEntity player, DamageSource sourc

player.setHealth(player.getMaxHealth());
player.getHungerManager().setFoodLevel(20);
player.setAir(player.getMaxAir());

player.extinguish();
player.getDamageTracker().update();
Expand Down

0 comments on commit 50de441

Please sign in to comment.