forked from Upstream/mmocore
Fixed exp split in diff worlds outputing error
This commit is contained in:
parent
1abdf0aff7
commit
1f06376782
@ -800,7 +800,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
final double maxDis = MMOCore.plugin.configManager.partyMaxExpSplitRange;
|
final double maxDis = MMOCore.plugin.configManager.partyMaxExpSplitRange;
|
||||||
return maxDis <= 0 || pd.getPlayer().getLocation().distanceSquared(getPlayer().getLocation()) < maxDis * maxDis;
|
return maxDis <= 0 || (pd.getPlayer().getWorld().equals(getPlayer().getWorld()) && pd.getPlayer().getLocation().distanceSquared(getPlayer().getLocation()) < maxDis * maxDis);
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
value /= (nearbyMembers.size() + 1);
|
value /= (nearbyMembers.size() + 1);
|
||||||
for (PlayerData member : nearbyMembers)
|
for (PlayerData member : nearbyMembers)
|
||||||
|
Loading…
Reference in New Issue
Block a user