Fix Implementation for DamageSource#isIndirect for internal custom causing entity
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -65,7 +65,7 @@ public class CraftDamageSource implements DamageSource {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isIndirect() {
|
public boolean isIndirect() {
|
||||||
return this.getHandle().getEntity() != this.getHandle().getDamager();
|
return this.getHandle().getCausingDamager() != this.getHandle().getDamager();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user