mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed NPE due to null itemShareMode
This commit is contained in:
parent
c659f8a9a9
commit
457754b6f1
@ -12,8 +12,8 @@ public class Party {
|
||||
private String name;
|
||||
private String password;
|
||||
private boolean locked;
|
||||
private ShareHandler.ShareMode xpShareMode;
|
||||
private ShareHandler.ShareMode itemShareMode;
|
||||
private ShareHandler.ShareMode xpShareMode = ShareHandler.ShareMode.NONE;
|
||||
private ShareHandler.ShareMode itemShareMode = ShareHandler.ShareMode.NONE;
|
||||
|
||||
public List<OfflinePlayer> getMembers() {
|
||||
return members;
|
||||
|
@ -260,7 +260,6 @@ public final class PartyManager {
|
||||
|
||||
party.setName(partyName);
|
||||
party.setLeader(player.getName());
|
||||
party.setXpShareMode(ShareHandler.ShareMode.NONE);
|
||||
party.setLocked(true); // Parties are now invite-only by default, can be set to open with /party unlock
|
||||
|
||||
if (password != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user