nullcheck obtained entity entries (#1206, 1207)
No idea what's going on here but aight
This commit is contained in:
parent
27e41e2e77
commit
8be8cc30b9
4 changed files with 5 additions and 3 deletions
|
@ -52,6 +52,8 @@ public class ItemDaggerOfSacrifice extends Item implements IVariantProvider {
|
|||
return false;
|
||||
|
||||
EntityEntry entityEntry = EntityRegistry.getEntry(target.getClass());
|
||||
if (entityEntry == null)
|
||||
return false;
|
||||
int lifeEssenceRatio = BloodMagicAPI.INSTANCE.getSacrificialValues().getOrDefault(entityEntry.getRegistryName(), 25);
|
||||
|
||||
if (lifeEssenceRatio <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue