Fixed Guild Creation
Fixed a bug on guild creation process where the leadership would not be assigned instantly to the guild leader (would need to change channels or reconnect to take effect).
This commit is contained in:
@@ -266,7 +266,13 @@ public class World {
|
||||
} else {
|
||||
bDifferentGuild = guildid != mc.getGuildId();
|
||||
mc.setGuildId(guildid);
|
||||
mc.setGuildRank(rank);
|
||||
|
||||
MapleGuildCharacter mgc = mc.getMGC();
|
||||
if(mgc != null) {
|
||||
mgc.setGuildRank(rank);
|
||||
if(bDifferentGuild) mgc.setAllianceRank(5);
|
||||
}
|
||||
|
||||
mc.saveGuildStatus();
|
||||
}
|
||||
if (bDifferentGuild) {
|
||||
|
||||
Reference in New Issue
Block a user