Fix Implementation for DamageSource#isIndirect for internal custom causing entity

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2024-06-15 12:47:45 -04:00
parent 199310d0bd
commit 6af115230a

View file

@ -65,7 +65,7 @@ public class CraftDamageSource implements DamageSource {
@Override
public boolean isIndirect() {
return this.getHandle().getEntity() != this.getHandle().getDamager();
return this.getHandle().getCausingDamager() != this.getHandle().getDamager();
}
@Override