From 14fe248e190f49c1273b3a18af8419eeaa81f166 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 25 Jun 2024 21:36:26 -0500 Subject: [PATCH] mine serializing --- src/engine/net/client/msg/CityDataMsg.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/engine/net/client/msg/CityDataMsg.java b/src/engine/net/client/msg/CityDataMsg.java index f5f679e7..100a748c 100644 --- a/src/engine/net/client/msg/CityDataMsg.java +++ b/src/engine/net/client/msg/CityDataMsg.java @@ -104,8 +104,10 @@ public class CityDataMsg extends ClientNetMsg { } temp.putInt(mineList.size()); - for (Mine mine : mineList) - Mine.serializeForClientMsg(mine, temp); + for (Mine mine : mineList) { + if(mine.getParentZone() != null && !mine.getParentZone().isContinent()) + Mine.serializeForClientMsg(mine, temp); + } temp.put((byte) 0); // PAD } @@ -178,8 +180,10 @@ public class CityDataMsg extends ClientNetMsg { } writer.putInt(mineList.size()); - for (Mine mine : mineList) - Mine.serializeForClientMsg(mine, writer); + for (Mine mine : mineList) { + if(mine.getParentZone() != null && !mine.getParentZone().isContinent()) + Mine.serializeForClientMsg(mine, writer); + } } else writer.putInt(0); } catch (Exception e) {