13
0
geforkt von Mirrors/Paper

Merge remote-tracking branch 'origin/dev/1.21' into dev/1.21

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-06-15 18:52:19 +02:00
Commit 967ee0c7b1

Datei anzeigen

@ -183,7 +183,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@Override
public org.bukkit.entity.Entity getCausingEntity() {
- 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;
}