Permalink
Browse files

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

  • Loading branch information...
1 parent 4e93224 commit 4992c5009833e6f3c6a3d86879a4cef2f74f726a @TfT-02 TfT-02 committed Mar 31, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 Changelog.txt
  2. +1 −1 src/main/java/com/gmail/nossr50/party/PartyManager.java
View
@@ -10,6 +10,7 @@ Key:
Version 1.4.05-dev
+ 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 which allowed players to share experience with nearby dead players
Version 1.4.04
+ Added functions to ExperienceAPI for use with offline players
@@ -84,7 +84,7 @@ public static boolean inSameParty(Player firstPlayer, Player secondPlayer) {
List<Player> nearMembers = new ArrayList<Player>();
if (party != null) {
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);
}
}

0 comments on commit 4992c50

Please sign in to comment.