mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Actually, we CAN use that check here.
This commit is contained in:
parent
1da1bb7218
commit
add4bc24df
@ -125,8 +125,7 @@ public class PlayerListener implements Listener {
|
|||||||
if (event.getResult() == Result.ALLOWED) {
|
if (event.getResult() == Result.ALLOWED) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
/* We can't use the other check here because a profile hasn't been created yet.*/
|
if (Misc.isNPCPlayer(player)) {
|
||||||
if (player == null || player.hasMetadata("NPC")) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user