Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WHY are there people that think null is a good UUID value.
  • Loading branch information
dries007 committed Mar 21, 2016
1 parent 2828fb1 commit 8546074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/doubledoordev/itemblacklist/Helper.java
Expand Up @@ -7,6 +7,7 @@
import net.doubledoordev.itemblacklist.data.GlobalBanList;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraftforge.common.util.FakePlayer;

import java.io.File;

Expand Down Expand Up @@ -62,6 +63,6 @@ public static int[] parseDimIds(String dimension)

public static boolean shouldCare(EntityPlayer player)
{
return MinecraftServer.getServer().isSinglePlayer() || !MinecraftServer.getServer().getConfigurationManager().func_152596_g(player.getGameProfile());
return MinecraftServer.getServer().isSinglePlayer() || player instanceof FakePlayer || player.getGameProfile().getId() == null|| !MinecraftServer.getServer().getConfigurationManager().func_152596_g(player.getGameProfile());
}
}

0 comments on commit 8546074

Please sign in to comment.