Sharing with the dead is bad, they have nothing to gain.

This commit is contained in:
TfT_02 2013-04-01 00:22:18 +02:00
parent 4e9322485a
commit 4992c50098
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Key:
Version 1.4.05-dev Version 1.4.05-dev
+ Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default) + Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)
= Fixed bug where /addxp was setting instead of adding experience = Fixed bug where /addxp was setting instead of adding experience
= Fixed bug which allowed players to share experience with nearby dead players
Version 1.4.04 Version 1.4.04
+ Added functions to ExperienceAPI for use with offline players + Added functions to ExperienceAPI for use with offline players

View File

@ -84,7 +84,7 @@ public final class PartyManager {
List<Player> nearMembers = new ArrayList<Player>(); List<Player> nearMembers = new ArrayList<Player>();
if (party != null) { if (party != null) {
for (Player member : party.getOnlineMembers()) { for (Player member : party.getOnlineMembers()) {
if (!player.getName().equalsIgnoreCase(member.getName()) && Misc.isNear(player.getLocation(), member.getLocation(), range)) { if (!player.getName().equalsIgnoreCase(member.getName()) && !member.isDead() && Misc.isNear(player.getLocation(), member.getLocation(), range)) {
nearMembers.add(member); nearMembers.add(member);
} }
} }