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");