City realm id lookup not db load

This commit is contained in:
MagicBot committed 2024-04-27 11:32:05 -04:00
1 parent 3a8521683b
commit 916a12a434
8 files changed
+32 -31

No files matched your search

@@ -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;
}