Added a null check for the Will getter for the Aura incase the WillChunk somehow does not generate. (#1011)
(cherry picked from commit f083071
)
This commit is contained in:
parent
60eba2071d
commit
e8dd07893e
2 changed files with 6 additions and 0 deletions
|
@ -177,6 +177,11 @@ public class WorldDemonWillHandler
|
|||
{
|
||||
WillChunk willChunk = getWillChunk(world, pos);
|
||||
|
||||
if (willChunk == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
DemonWillHolder currentWill = willChunk.getCurrentWill();
|
||||
return currentWill.getWill(type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue