Browse Source

mine serializing

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
14fe248e19
  1. 12
      src/engine/net/client/msg/CityDataMsg.java

12
src/engine/net/client/msg/CityDataMsg.java

@ -104,8 +104,10 @@ public class CityDataMsg extends ClientNetMsg {
} }
temp.putInt(mineList.size()); temp.putInt(mineList.size());
for (Mine mine : mineList) for (Mine mine : mineList) {
Mine.serializeForClientMsg(mine, temp); if(mine.getParentZone() != null && !mine.getParentZone().isContinent())
Mine.serializeForClientMsg(mine, temp);
}
temp.put((byte) 0); // PAD temp.put((byte) 0); // PAD
} }
@ -178,8 +180,10 @@ public class CityDataMsg extends ClientNetMsg {
} }
writer.putInt(mineList.size()); writer.putInt(mineList.size());
for (Mine mine : mineList) for (Mine mine : mineList) {
Mine.serializeForClientMsg(mine, writer); if(mine.getParentZone() != null && !mine.getParentZone().isContinent())
Mine.serializeForClientMsg(mine, writer);
}
} else } else
writer.putInt(0); writer.putInt(0);
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save