From 16e4f3fa7a6369ee50590de54fc78311091744e7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 5 Jun 2022 21:14:10 -0500 Subject: [PATCH] fix to abandoning tree as nation check --- src/engine/net/client/handlers/AbandonAssetMsgHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/AbandonAssetMsgHandler.java b/src/engine/net/client/handlers/AbandonAssetMsgHandler.java index 588ffcd4..a6312d2a 100644 --- a/src/engine/net/client/handlers/AbandonAssetMsgHandler.java +++ b/src/engine/net/client/handlers/AbandonAssetMsgHandler.java @@ -97,7 +97,7 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler { { // CHECK IF GUILD HAS A BANE DROPPED City city = ZoneManager.getCityAtLocation(building.getLoc()); - if(city.getGuild().isNation() == true) + if(city.getGuild().getSubGuildList().isEmpty() == false) { //nations cant abandon their tree ErrorPopupMsg.sendErrorMsg(player, "Nations Cannot Abandon Their Capital!");