mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
targetParty could have been null going into the PartyChangeEvent.
This commit is contained in:
parent
2764368089
commit
3550c25b7d
@ -214,7 +214,7 @@ public class PartyCommand implements CommandExecutor {
|
||||
Party targetParty = mcMMOTarget.getParty();
|
||||
|
||||
// Check to see if the party exists, and if it does, can the player join it?
|
||||
if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) {
|
||||
if (targetParty == null || !PartyManager.checkJoinability(player, targetParty, null)) {
|
||||
return true; // End before any event is fired.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user