Fix Implementation for DamageSource#isIndirect for internal custom causing entity

This commit is contained in:
Doc 2024-06-15 12:47:45 -04:00
parent 6ce1726424
commit ee9eafe674
No known key found for this signature in database
GPG Key ID: 569482E14CAEBE86

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