mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
The dead are not meant to walk. Fixes BUKKIT-95. Thanks Evenprime!
This commit is contained in:
@@ -225,7 +225,7 @@ public abstract class EntityLiving extends Entity {
|
|||||||
|
|
||||||
protected void ag() {
|
protected void ag() {
|
||||||
++this.deathTicks;
|
++this.deathTicks;
|
||||||
if (this.deathTicks == 20) {
|
if (this.deathTicks >= 20 && !this.dead) { // CraftBukkit - (this.deathTicks == 20) -> (this.deathTicks >= 20 && !this.dead).
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// CraftBukkit start - update getExpReward() above if the removed if() changes!
|
// CraftBukkit start - update getExpReward() above if the removed if() changes!
|
||||||
|
Reference in New Issue
Block a user