From f08307180cc1f91490bc3c13bea10cc477af9125 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Tue, 20 Dec 2016 19:42:39 -0500 Subject: [PATCH] Added a null check for the Will getter for the Aura incase the WillChunk somehow does not generate. (#1011) --- changelog.txt | 1 + .../bloodmagic/demonAura/WorldDemonWillHandler.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/changelog.txt b/changelog.txt index eb4846c7..20db1aa4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/src/main/java/WayofTime/bloodmagic/demonAura/WorldDemonWillHandler.java b/src/main/java/WayofTime/bloodmagic/demonAura/WorldDemonWillHandler.java index b5a1a6bf..2195f2a1 100644 --- a/src/main/java/WayofTime/bloodmagic/demonAura/WorldDemonWillHandler.java +++ b/src/main/java/WayofTime/bloodmagic/demonAura/WorldDemonWillHandler.java @@ -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); }