Added a null check for the Will getter for the Aura incase the WillChunk somehow does not generate. (#1011)
This commit is contained in:
parent
afa3d1ef91
commit
f08307180c
|
@ -3,6 +3,7 @@ Version 2.1.1-70
|
|||
------------------------------------------------------
|
||||
- Added Fluid routing to the routing nodes - this is done by using the Fluid Filter and placing a fluid container as the filter.
|
||||
- Made it so the book does not give the filling recipe when the Blood Orb recipe is queried.
|
||||
- Added a null check for the Will getter for the Aura incase the WillChunk somehow does not generate.
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.1.0-69
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue