workaround for pylon enchant power. closes #16

This commit is contained in:
Vincent Lee committed 2016-01-04 19:58:54 -06:00
1 parent 46c13be698
commit ab4f6f6433
1 file changed
+6 -1
@@ -111,7 +111,12 @@ public class BlockPylon extends BlockModContainer implements ILexiconable, IInfu
@Override
public float getEnchantPowerBonus(World world, BlockPos pos) {
return world.getBlockState(pos).getValue(BotaniaStateProps.PYLON_VARIANT) == PylonVariant.MANA ? 8 : 15;
IBlockState state = world.getBlockState(pos);
if (state.getBlock() != this || state.getValue(BotaniaStateProps.PYLON_VARIANT) == PylonVariant.MANA) {
return 8;
} else {
return 15;
}
}
@Override