City realm id lookup not db load
This commit is contained in:
@@ -9,12 +9,12 @@
|
||||
|
||||
package engine.objects;
|
||||
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.*;
|
||||
import engine.db.archive.DataWarehouse;
|
||||
import engine.db.archive.GuildRecord;
|
||||
import engine.db.handlers.dbGuildHandler;
|
||||
import engine.gameManager.*;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.*;
|
||||
import engine.net.ByteBufferWriter;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
@@ -250,7 +250,8 @@ public class Guild extends AbstractWorldObject {
|
||||
City ownedCity = guild.getOwnedCity();
|
||||
|
||||
if (ownedCity != null) {
|
||||
Realm realm = guild.getOwnedCity().getRealm();
|
||||
City city = guild.getOwnedCity();
|
||||
Realm realm = city.realm;
|
||||
if (realm != null && realm.getRulingCity() != null) {
|
||||
if (realm.getRulingCity().equals(ownedCity)) {
|
||||
writer.putInt(realm.getCharterType());
|
||||
|
||||
Reference in New Issue
Block a user