mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Rename revision 2
This commit is contained in:
1 parent
3c5632de31
commit
2b5a61f03d
29 files changed
+126
-126
No files matched your search
@@ -42,7 +42,7 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
|
||||
|
||||
public boolean damageEntity(DamageSource damagesource, int i) {
|
||||
if (super.damageEntity(damagesource, i)) {
|
||||
Entity entity = damagesource.a();
|
||||
Entity entity = damagesource.getEntity();
|
||||
|
||||
if (this.passenger != entity && this.vehicle != entity) {
|
||||
if (entity != this) {
|
||||
@@ -82,14 +82,14 @@ public abstract class EntityMonster extends EntityCreature implements IMonster {
|
||||
this.world.getServer().getPluginManager().callEvent(event);
|
||||
|
||||
if (!event.isCancelled()) {
|
||||
return entity.damageEntity(DamageSource.a(this), event.getDamage());
|
||||
return entity.damageEntity(DamageSource.mobAttack(this), event.getDamage());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
return entity.damageEntity(DamageSource.a((EntityLiving) this), this.damage);
|
||||
return entity.damageEntity(DamageSource.mobAttack((EntityLiving) this), this.damage);
|
||||
}
|
||||
|
||||
protected void a(Entity entity, float f) {
|
||||
|
||||
Reference in new issue
Block a user