Fix for NPE on /f who command by in-game player

This commit is contained in:
Brettflan 2011-06-30 11:50:54 -05:00
parent a6d2a292aa
commit dba406e52b

View File

@ -53,7 +53,7 @@ public class FBaseCommand {
return; return;
} }
if (this.senderMustBePlayer) { if (sender instanceof Player) {
this.player = (Player)sender; this.player = (Player)sender;
this.me = FPlayer.get(this.player); this.me = FPlayer.get(this.player);
} }