Added a null check for the Will getter for the Aura incase the WillChunk somehow does not generate. (#1011)

This commit is contained in:
WayofTime 2016-12-20 19:42:39 -05:00
parent afa3d1ef91
commit f08307180c
2 changed files with 6 additions and 0 deletions

View file

@ -174,6 +174,11 @@ public class WorldDemonWillHandler
{
WillChunk willChunk = getWillChunk(world, pos);
if (willChunk == null)
{
return 0;
}
DemonWillHolder currentWill = willChunk.getCurrentWill();
return currentWill.getWill(type);
}