Nullcheck the ritual activator (#1113)

This commit is contained in:
Nicholas Ignoffo 2017-03-28 18:45:45 -07:00
parent 3134f6b9f3
commit f17f284575
2 changed files with 10 additions and 6 deletions

View file

@ -79,7 +79,7 @@ public class PlayerHelper
*/
public static boolean isFakePlayer(EntityPlayer player)
{
return player != null && (player instanceof FakePlayer || knownFakePlayers.contains(player.getClass().getCanonicalName()));
return player instanceof FakePlayer || (player != null && knownFakePlayers.contains(player.getClass().getCanonicalName()));
}
public static void causeNauseaToPlayer(ItemStack stack)