IMC API for adding new altar components (#1039)

CC @Drullkus

(cherry picked from commit 8a8bff8)
This commit is contained in:
Nicholas Ignoffo 2017-02-12 01:18:16 -08:00
parent 9010cebc40
commit f135dab7ba
3 changed files with 40 additions and 1 deletions

View file

@ -129,9 +129,12 @@ public class BloodAltar implements IFluidHandler
EnumAltarComponent component = ((IAltarComponent) worldBlock.getBlock()).getType(world, worldBlock.getState(), componentPos);
if (component == null || component != altarComponent.getComponent())
return false;
} else if (worldBlock.getBlock() != Utils.getBlockForComponent(altarComponent.getComponent()))
} else if (worldBlock.getBlock() != Utils.getBlockForComponent(altarComponent.getComponent())) // Special case Vanilla
{
return false;
} else if (BloodMagicAPI.getAltarComponents().get(worldBlock.getState()) != null) // Mod compat
{
return BloodMagicAPI.getAltarComponents().get(worldBlock.getState()) == altarComponent.getComponent();
}
} else
{