City realm id lookup not db load

This commit is contained in:
2024-04-27 11:32:05 -04:00
parent 3a8521683b
commit 916a12a434
8 changed files with 32 additions and 31 deletions
@@ -1,9 +1,9 @@
package engine.net.client.handlers;
import engine.mbEnums;
import engine.InterestManagement.RealmMap;
import engine.exception.MsgSendException;
import engine.gameManager.BuildingManager;
import engine.mbEnums;
import engine.net.Dispatch;
import engine.net.DispatchMessage;
import engine.net.client.ClientConnection;
@@ -72,7 +72,8 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
// return true;
// }
if (playerGuild.getOwnedCity().getRealm() == null) {
City city1 = playerGuild.getOwnedCity();
if (city1.realm == null) {
ErrorPopupMsg.sendErrorMsg(player, "Cannot find realm for your city!");
return true;
}