Fixed NPE with poison condition effect.
This commit is contained in:
parent
e23362bd6f
commit
dd5b2d5e3f
@ -379,7 +379,7 @@ public class ConditionEffect implements Listener
|
|||||||
|
|
||||||
Manager.getDamagerManager().NewDamageEvent(ent, condition.GetSource(), null,
|
Manager.getDamagerManager().NewDamageEvent(ent, condition.GetSource(), null,
|
||||||
DamageCause.CUSTOM, 0.1, false, true, false,
|
DamageCause.CUSTOM, 0.1, false, true, false,
|
||||||
condition.GetSource().getName(), "Poison");
|
condition.GetSource() != null ? condition.GetSource().getName() : "The Mighty Defek7", "Poison");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user