mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed a bug which made it impossible to join other players' parties.
This commit is contained in:
parent
89eef2ce07
commit
1c328e7ac7
@ -35,6 +35,7 @@ Version 1.4.00-dev
|
||||
= Fixed bug where all skill guide headers appeared as "Skillname Guide Guide"
|
||||
= Fixed bug where Impact was applied incorrectly due to an inverted method call
|
||||
= Fixed bug where Impact improperly determined the defender's armor
|
||||
= Fixed a bug which made it impossible to join other players' parties
|
||||
= Fixed ArrayIndexOutOfBoundsException resulting from being unranked in a skill when using FlatFile
|
||||
= Fixed Woodcutting accidentally using Mining double drop values.
|
||||
= Fixed Hylian Luck not removing the block-placed flag from flowers.
|
||||
|
@ -186,7 +186,9 @@ public class PartyCommand implements CommandExecutor {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!mcMMOPlayer.inParty()) {
|
||||
McMMOPlayer mcMMOTarget = Users.getPlayer(target);
|
||||
|
||||
if (!mcMMOTarget.inParty()) {
|
||||
player.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", args[1]));
|
||||
return false;
|
||||
}
|
||||
@ -209,7 +211,7 @@ public class PartyCommand implements CommandExecutor {
|
||||
password = args[2];
|
||||
}
|
||||
|
||||
Party targetParty = Users.getPlayer(target).getParty();
|
||||
Party targetParty = mcMMOTarget.getParty();
|
||||
|
||||
// Check to see if the party exists, and if it does, can the player join it?
|
||||
if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) {
|
||||
|
Loading…
Reference in New Issue
Block a user