From abe54ad1cab396e909e8eed6fd77f8adea7fcd20 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 21 Jan 2016 11:26:16 +1100 Subject: [PATCH] Fixed an error with the achievement handler --- .../biomesoplenty/common/handler/AchievementEventHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java index 5bb0ae14a..4fc48389d 100644 --- a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java +++ b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java @@ -264,6 +264,10 @@ public class AchievementEventHandler //Search every item in the player's main inventory for a biome radar for (ItemStack stack : player.inventory.mainInventory) { + //If the stack is null, skip it + if (stack == null) + continue; + if (stack.getItem() == BOPItems.biome_finder && stack.hasTagCompound() && stack.getTagCompound().hasKey("biomeIDToFind")) { int biomeIdToFind = stack.getTagCompound().getInteger("biomeIDToFind");