Revert DamageSource#getCausingEntity to vanilla
This commit is contained in:
parent
efb91589dc
commit
22595ec4c0
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@Override
|
@Override
|
||||||
public org.bukkit.entity.Entity getCausingEntity() {
|
public org.bukkit.entity.Entity getCausingEntity() {
|
||||||
- net.minecraft.world.entity.Entity entity = this.getHandle().getCausingDamager();
|
- net.minecraft.world.entity.Entity entity = this.getHandle().getCausingDamager();
|
||||||
+ net.minecraft.world.entity.Entity entity = this.getHandle().getCustomEventDamager(); // Paper
|
+ net.minecraft.world.entity.Entity entity = this.getHandle().getEntity(); // Paper - fix DamageSource API - revert to vanilla
|
||||||
return (entity != null) ? entity.getBukkitEntity() : null;
|
return (entity != null) ? entity.getBukkitEntity() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue