mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Party NPE fix
This commit is contained in:
parent
227fb49dec
commit
7506646862
@ -7,6 +7,9 @@ Key:
|
||||
! Change
|
||||
- Removal
|
||||
|
||||
Version 2.1.47
|
||||
Fix NPE when party leader is offline and players grab a party list
|
||||
|
||||
Version 2.1.46
|
||||
Party member lists now show the whole party, including offline players again.
|
||||
Party lists now have special markers for players who are in shared XP range
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.46</version>
|
||||
<version>2.1.47-SNAPSHOT</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -130,7 +130,5 @@ public class PartyInfoCommand implements CommandExecutor {
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Members.Header"));
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.MembersNear", nearMembers.size()+1, membersOnline));
|
||||
player.sendMessage(party.createMembersList(player));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -373,6 +373,9 @@ public class Party {
|
||||
}
|
||||
}
|
||||
|
||||
if(offlineMembers.contains(leader.getUniqueId()))
|
||||
isPartyLeaderOfflineOrHidden = true;
|
||||
|
||||
//Add all the actually offline members
|
||||
offlineOrHiddenPartyList.addAll(offlineMembers);
|
||||
|
||||
@ -407,10 +410,10 @@ public class Party {
|
||||
applyOnlineAndRangeFormatting(memberList, true, nearbyPlayerList.contains(Bukkit.getPlayer(leader.getUniqueId())));
|
||||
|
||||
if(useDisplayNames) {
|
||||
memberList.append(Bukkit.getPlayer(leader.getUniqueId()).getDisplayName());
|
||||
memberList.append(leader.getPlayerName());
|
||||
} else {
|
||||
memberList.append(ChatColor.GOLD)
|
||||
.append(Bukkit.getPlayer(leader.getUniqueId()).getName());
|
||||
.append(Bukkit.getOfflinePlayer(leader.getUniqueId()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class MiningManager extends SkillManager {
|
||||
SkillUtils.handleDurabilityChange(getPlayer().getInventory().getItemInMainHand(), Config.getInstance().getAbilityToolDamage());
|
||||
}
|
||||
|
||||
if ((mcMMO.getModManager().isCustomMiningBlock(blockState) && !mcMMO.getModManager().getBlock(blockState).isDoubleDropEnabled()) || !Config.getInstance().getDoubleDropsEnabled(skill, material)) {
|
||||
if ((mcMMO.getModManager().isCustomMiningBlock(blockState) && !mcMMO.getModManager().getBlock(blockState).isDoubleDropEnabled())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user