SPIGOT-6948: Motion from Explosion after Respawn

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2022-05-17 19:22:58 +10:00
parent ee1a8e3018
commit 5e503c9e28

View File

@@ -872,7 +872,7 @@
} }
@@ -1668,4 +2057,145 @@ @@ -1668,4 +2057,146 @@
public boolean allowsListing() { public boolean allowsListing() {
return this.allowsListing; return this.allowsListing;
} }
@@ -1010,6 +1010,7 @@
+ this.giveExperiencePoints(this.newExp); + this.giveExperiencePoints(this.newExp);
+ } + }
+ this.keepLevel = false; + this.keepLevel = false;
+ this.setDeltaMovement(0, 0, 0); // CraftBukkit - SPIGOT-6948: Reset velocity on death
+ } + }
+ +
+ @Override + @Override