Fixed a bug which made it impossible to join other players' parties.

This commit is contained in:
TfT_02 2013-02-05 14:46:56 +01:00
parent 89eef2ce07
commit 1c328e7ac7
2 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ Version 1.4.00-dev
= Fixed bug where all skill guide headers appeared as "Skillname Guide Guide" = 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 was applied incorrectly due to an inverted method call
= Fixed bug where Impact improperly determined the defender's armor = 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 ArrayIndexOutOfBoundsException resulting from being unranked in a skill when using FlatFile
= Fixed Woodcutting accidentally using Mining double drop values. = Fixed Woodcutting accidentally using Mining double drop values.
= Fixed Hylian Luck not removing the block-placed flag from flowers. = Fixed Hylian Luck not removing the block-placed flag from flowers.

View File

@ -186,7 +186,9 @@ public class PartyCommand implements CommandExecutor {
return false; return false;
} }
if (!mcMMOPlayer.inParty()) { McMMOPlayer mcMMOTarget = Users.getPlayer(target);
if (!mcMMOTarget.inParty()) {
player.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", args[1])); player.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", args[1]));
return false; return false;
} }
@ -209,7 +211,7 @@ public class PartyCommand implements CommandExecutor {
password = args[2]; 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? // Check to see if the party exists, and if it does, can the player join it?
if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) { if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) {