From 2c08dc3c5b7f9f34ed580a981565c7a0c99e947c Mon Sep 17 00:00:00 2001 From: Adubbz Date: Tue, 5 Apr 2016 11:19:15 +1000 Subject: [PATCH] Fixed a potential crash with trails --- .../java/biomesoplenty/common/handler/TrailsEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/handler/TrailsEventHandler.java b/src/main/java/biomesoplenty/common/handler/TrailsEventHandler.java index 69b83620a..76f30625f 100644 --- a/src/main/java/biomesoplenty/common/handler/TrailsEventHandler.java +++ b/src/main/java/biomesoplenty/common/handler/TrailsEventHandler.java @@ -37,7 +37,7 @@ public class TrailsEventHandler EntityPlayer player = (EntityPlayer)event.player; //Check if the player has a trail - if (TrailManager.trailsMap.containsKey(player.getUniqueID())) + if (minecraft.thePlayer != null && TrailManager.trailsMap.containsKey(player.getUniqueID())) { //Don't display if the local player's trail if they have the visibility set to others if (MiscConfigurationHandler.trailVisbilityMode == TrailVisibilityMode.OTHERS && minecraft.thePlayer.getUniqueID() == player.getUniqueID())