Fixed NPE with poison condition effect.

This commit is contained in:
Jonathan Williams 2016-04-05 00:36:18 -05:00
parent e23362bd6f
commit dd5b2d5e3f

View File

@ -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");
} }
} }