From 09b041e48e02667e4c63622e33cd2a74cf0f826f Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Fri, 27 Feb 2015 23:24:44 +0000 Subject: [PATCH] Derp --- .../common/spell/complex/effect/SpellHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/spell/complex/effect/SpellHelper.java b/src/main/java/WayofTime/alchemicalWizardry/common/spell/complex/effect/SpellHelper.java index 151a79b8..350a20bd 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/spell/complex/effect/SpellHelper.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/spell/complex/effect/SpellHelper.java @@ -316,7 +316,7 @@ public class SpellHelper private static final Pattern FAKE_PLAYER_PATTERN = Pattern.compile("^(?:\\[.*\\])|(?:ComputerCraft)$"); public static boolean isFakePlayer(EntityPlayer player) { - return player instanceof FakePlayer || FAKE_PLAYER_PATTERN.matcher(name).matches(); + return player instanceof FakePlayer || FAKE_PLAYER_PATTERN.matcher(SpellHelper.getUsername(player)).matches(); } public static void smashBlock(World world, int posX, int posY, int posZ)