Fixed NPE due to null itemShareMode

This commit is contained in:
bm01 2013-02-09 14:35:48 +01:00
parent c659f8a9a9
commit 457754b6f1
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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) {