Skip to content

Commit

Permalink
Fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 12, 2014
1 parent 65df196 commit bbb4402
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -8,6 +8,7 @@
import com.gmail.nossr50.database.DatabaseManagerFactory;
import com.gmail.nossr50.database.FlatfileDatabaseManager;
import com.gmail.nossr50.datatypes.database.DatabaseUpdateType;
import com.gmail.nossr50.datatypes.party.Party;
import com.gmail.nossr50.datatypes.skills.SkillType;
import com.gmail.nossr50.party.PartyManager;
import com.gmail.nossr50.util.Misc;
Expand Down Expand Up @@ -144,7 +145,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
ExperienceAPI.addRawXPOffline(player.getName(), skill, (float) qty);
}
}
} else if (PartyManager.isParty(party)) {
} else if (PartyManager.getParty(party) != null) {
PartyAPI.addToParty(player, party);
}
break;
Expand All @@ -165,7 +166,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
ExperienceAPI.removeXPOffline(player.getName(), skill, (int) qty);
}
}
else if (PartyManager.isParty(party)) {
else if (PartyManager.getParty(party) != null) {
if (PartyAPI.getPartyLeader(party).equals(player.getName()))
PartyManager.disbandParty(PartyManager.getParty(party));

Expand Down

0 comments on commit bbb4402

Please sign in to comment.