mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
workaround for pylon enchant power. closes #16
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user