mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Fixed NPE on /party
This commit is contained in:
@ -152,9 +152,10 @@ public class Party {
|
||||
|
||||
if (player != null) {
|
||||
for (String name : profiles.keySet()) {
|
||||
Player p = profiles.get(name).getPlayer();
|
||||
if (inSameParty(p, player)) {
|
||||
players.add(p);
|
||||
Player otherPlayer = profiles.get(name).getPlayer();
|
||||
|
||||
if (otherPlayer != null && inSameParty(otherPlayer, player)) {
|
||||
players.add(otherPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user