Fix accidentally renamed internal damage method

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-02-11 09:58:07 +11:00
parent 49b5ee78bb
commit 219db06f85
2 changed files with 10 additions and 10 deletions

View File

@@ -234,9 +234,9 @@
+ // CraftBukkit start
@Override
- protected void actuallyHurt(DamageSource damagesource, float f) {
+ protected boolean damageEntity0(DamageSource damagesource, float f) { // void -> boolean
+ protected boolean actuallyHurt(DamageSource damagesource, float f) { // void -> boolean
+ if (true) {
+ return super.damageEntity0(damagesource, f);
+ return super.actuallyHurt(damagesource, f);
+ }
+ // CraftBukkit end
if (!this.isInvulnerableTo(damagesource)) {