SPIGOT-6948: Motion from Explosion after Respawn

This commit is contained in:
DerFrZocker 2022-05-17 19:22:58 +10:00 committed by md_5
parent f3c7a6ac7a
commit 518f1beed0
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

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