SPIGOT-7382: Player still on fire after respawn

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-06-11 17:30:03 +10:00
parent c49031bc5d
commit a7ce4d1a3f
3 changed files with 12 additions and 3 deletions

View File

@@ -1090,7 +1090,7 @@
+
+ this.setHealth(this.getMaxHealth());
+ this.stopUsingItem(); // CraftBukkit - SPIGOT-6682: Clear active item on reset
+ this.remainingFireTicks = 0;
+ this.setRemainingFireTicks(0);
+ this.fallDistance = 0;
+ this.foodData = new FoodMetaData(this);
+ this.experienceLevel = this.newLevel;