mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
target description NPE fix
This commit is contained in:
parent
4ae362c050
commit
ec9ea835a5
1 changed files with 3 additions and 1 deletions
|
@ -223,9 +223,11 @@ public class TargetCreatureOrPlayer extends TargetImpl<TargetCreatureOrPlayer> {
|
|||
}
|
||||
else {
|
||||
Player player = game.getPlayer(targetId);
|
||||
if (player != null) {
|
||||
sb.append(player.getName()).append(" ");
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue