From 9c2621e93aa3bb2da9f6046c27c670709f1a5262 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Sat, 7 Apr 2018 18:51:21 -0400 Subject: [PATCH] Fixed stupid NPE in the Furnace Array --- changelog.txt | 5 +++++ .../alchemyArray/AlchemyArrayEffectFurnaceFuel.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/changelog.txt b/changelog.txt index ae38265b..ee011044 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +------------------------------------------------------ +Version 2.2.9 +------------------------------------------------------ +- Fixed stupid NPE in the Furnace Array + ------------------------------------------------------ Version 2.2.8 ------------------------------------------------------ diff --git a/src/main/java/WayofTime/bloodmagic/alchemyArray/AlchemyArrayEffectFurnaceFuel.java b/src/main/java/WayofTime/bloodmagic/alchemyArray/AlchemyArrayEffectFurnaceFuel.java index b9f2f51b..c21135ac 100644 --- a/src/main/java/WayofTime/bloodmagic/alchemyArray/AlchemyArrayEffectFurnaceFuel.java +++ b/src/main/java/WayofTime/bloodmagic/alchemyArray/AlchemyArrayEffectFurnaceFuel.java @@ -62,6 +62,11 @@ public class AlchemyArrayEffectFurnaceFuel extends AlchemyArrayEffect } } + if (sacrifice == null || sacrifice.isDead) + { + return false; + } + if (addFuelTime(furnaceTile, world, furnacePos, burnTicksAdded)) { if (!sacrifice.capabilities.isCreativeMode)