Fixed a potential crash with trails
This commit is contained in:
parent
ff45984c2d
commit
2c08dc3c5b
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class TrailsEventHandler
|
||||||
EntityPlayer player = (EntityPlayer)event.player;
|
EntityPlayer player = (EntityPlayer)event.player;
|
||||||
|
|
||||||
//Check if the player has a trail
|
//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
|
//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())
|
if (MiscConfigurationHandler.trailVisbilityMode == TrailVisibilityMode.OTHERS && minecraft.thePlayer.getUniqueID() == player.getUniqueID())
|
||||||
|
|
Loading…
Reference in a new issue