This commit is contained in:
WayofTime 2016-06-07 10:15:40 -04:00
parent 2798fb5873
commit f0f6af3eac
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@
Version 2.0.1-43 Version 2.0.1-43
------------------------------------------------------ ------------------------------------------------------
- Added an initial method to divine where a blood rune is missing for the next tier of altar. - Added an initial method to divine where a blood rune is missing for the next tier of altar.
- Fixed an NPE with the Gathering of the Forsaken Souls
------------------------------------------------------ ------------------------------------------------------
Version 2.0.1-42 Version 2.0.1-42

View file

@ -111,7 +111,9 @@ public class TileDemonCrystal extends TileEntity implements ITickable
return 0; return 0;
} }
EnumDemonWillType type = EnumDemonWillType.values()[this.getBlockMetadata()]; IBlockState state = worldObj.getBlockState(pos);
int meta = this.getBlockType().getMetaFromState(state);
EnumDemonWillType type = EnumDemonWillType.values()[meta];
double value = WorldDemonWillHandler.getCurrentWill(worldObj, pos, type); double value = WorldDemonWillHandler.getCurrentWill(worldObj, pos, type);
double percentDrain = willDrain <= 0 ? 1 : Math.min(1, value / willDrain); double percentDrain = willDrain <= 0 ? 1 : Math.min(1, value / willDrain);