Browse Source

Bugfix: needs city parent not current zone to pick up siege bounds.

master
MagicBot 2 years ago
parent
commit
0469754d5d
  1. 2
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

2
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -330,7 +330,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -330,7 +330,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
// No valid player city found
if (serverCity == null || serverZone.isPlayerCity() == false) {
if (serverCity == null || serverCity.getParent().isPlayerCity() == false) {
PlaceAssetMsg.sendPlaceAssetError(origin, 52, ""); // Cannot place outisde a guild zone
return false;
}

Loading…
Cancel
Save