Missed some value manager references
This commit is contained in:
parent
f8c734bc96
commit
50fd02b6aa
|
@ -54,7 +54,7 @@ public class ItemDaggerOfSacrifice extends Item implements IVariantProvider {
|
||||||
EntityEntry entityEntry = EntityRegistry.getEntry(target.getClass());
|
EntityEntry entityEntry = EntityRegistry.getEntry(target.getClass());
|
||||||
if (entityEntry == null)
|
if (entityEntry == null)
|
||||||
return false;
|
return false;
|
||||||
int lifeEssenceRatio = BloodMagicAPI.INSTANCE.getSacrificialValues().getOrDefault(entityEntry.getRegistryName(), 25);
|
int lifeEssenceRatio = BloodMagicAPI.INSTANCE.getValueManager().getSacrificial().getOrDefault(entityEntry.getRegistryName(), 25);
|
||||||
|
|
||||||
if (lifeEssenceRatio <= 0)
|
if (lifeEssenceRatio <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class RitualWellOfSuffering extends Ritual {
|
||||||
if (entityEntry == null || BloodMagicAPI.INSTANCE.getBlacklist().getSacrifice().contains(entityEntry.getRegistryName()))
|
if (entityEntry == null || BloodMagicAPI.INSTANCE.getBlacklist().getSacrifice().contains(entityEntry.getRegistryName()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int lifeEssenceRatio = BloodMagicAPI.INSTANCE.getSacrificialValues().getOrDefault(entityEntry.getRegistryName(), SACRIFICE_AMOUNT);
|
int lifeEssenceRatio = BloodMagicAPI.INSTANCE.getValueManager().getSacrificial().getOrDefault(entityEntry.getRegistryName(), SACRIFICE_AMOUNT);
|
||||||
|
|
||||||
if (lifeEssenceRatio <= 0)
|
if (lifeEssenceRatio <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue