SPIGOT-6682: Blocking with shield not reset after die

This commit is contained in:
DerFrZocker 2021-08-04 17:09:09 +10:00 committed by md_5
parent 97f629b68f
commit e1c96e507f
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -863,7 +863,7 @@
}
@@ -1634,4 +2020,144 @@
@@ -1634,4 +2020,145 @@
});
return this.a(itemstack, false, true) != null;
}
@ -979,6 +979,7 @@
+ }
+
+ this.setHealth(this.getMaxHealth());
+ this.clearActiveItem(); // CraftBukkit - SPIGOT-6682: Clear active item on reset
+ this.remainingFireTicks = 0;
+ this.fallDistance = 0;
+ this.foodData = new FoodMetaData(this);