Fixed bad NPE when using the WoS.
This commit is contained in:
parent
617b70bcf4
commit
46a35ac1fb
2 changed files with 8 additions and 1 deletions
|
@ -91,7 +91,8 @@ public class RitualWellOfSuffering extends Ritual
|
|||
if (ConfigHandler.wellOfSufferingBlacklist.contains(entity.getClass().getSimpleName()))
|
||||
continue;
|
||||
|
||||
if (BloodMagicAPI.getEntitySacrificeValues().get(entity.getClass().getSimpleName()) <= 0)
|
||||
String simpleClassName = entity.getClass().getSimpleName();
|
||||
if (BloodMagicAPI.getEntitySacrificeValues().containsKey(simpleClassName) && BloodMagicAPI.getEntitySacrificeValues().get(simpleClassName) <= 0)
|
||||
continue;
|
||||
|
||||
if (entity.isEntityAlive() && !(entity instanceof EntityPlayer))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue