Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
[Bleeding] Stop filtering out 0 damage for Humans. Fixes BUKKIT-1348
Dieser Commit ist enthalten in:
Ursprung
9d0ea52021
Commit
bdccfd29ec
@ -566,7 +566,7 @@ public abstract class EntityHuman extends EntityLiving {
|
|||||||
|
|
||||||
if (entity instanceof EntityMonster || entity instanceof EntityArrow) {
|
if (entity instanceof EntityMonster || entity instanceof EntityArrow) {
|
||||||
if (this.world.difficulty == 0) {
|
if (this.world.difficulty == 0) {
|
||||||
i = 0;
|
return false; // CraftBukkit - i = 0 -> return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.world.difficulty == 1) {
|
if (this.world.difficulty == 1) {
|
||||||
@ -577,10 +577,10 @@ public abstract class EntityHuman extends EntityLiving {
|
|||||||
i = i * 3 / 2;
|
i = i * 3 / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* CraftBukkit start - Don't filter out 0 damage
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else { CraftBukkit end */
|
||||||
Entity entity1 = entity;
|
Entity entity1 = entity;
|
||||||
|
|
||||||
if (entity instanceof EntityArrow && ((EntityArrow) entity).shooter != null) {
|
if (entity instanceof EntityArrow && ((EntityArrow) entity).shooter != null) {
|
||||||
@ -593,7 +593,7 @@ public abstract class EntityHuman extends EntityLiving {
|
|||||||
|
|
||||||
this.a(StatisticList.x, i);
|
this.a(StatisticList.x, i);
|
||||||
return super.damageEntity(damagesource, i);
|
return super.damageEntity(damagesource, i);
|
||||||
}
|
//} // CraftBukkit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren