Derp
This commit is contained in:
parent
074e4ba25f
commit
09b041e48e
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ public class SpellHelper
|
||||||
private static final Pattern FAKE_PLAYER_PATTERN = Pattern.compile("^(?:\\[.*\\])|(?:ComputerCraft)$");
|
private static final Pattern FAKE_PLAYER_PATTERN = Pattern.compile("^(?:\\[.*\\])|(?:ComputerCraft)$");
|
||||||
public static boolean isFakePlayer(EntityPlayer player)
|
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)
|
public static void smashBlock(World world, int posX, int posY, int posZ)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue