Browse Source

maintenance display on buildings

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
83a1cc5aba
  1. 2
      src/engine/net/client/msg/ManageCityAssetsMsg.java

2
src/engine/net/client/msg/ManageCityAssetsMsg.java

@ -514,7 +514,7 @@ public class ManageCityAssetsMsg extends ClientNetMsg {
if (maintDate == null) if (maintDate == null)
maintDate = LocalDateTime.now(); maintDate = LocalDateTime.now();
writer.putLocalDateTime(LocalDateTime.now()); // current time writer.putLocalDateTime(maintDate); // current time
// utc offset? // utc offset?
writer.putInt((int) java.time.Duration.between(LocalDateTime.now(), maintDate).getSeconds()); // Seconds to maint date writer.putInt((int) java.time.Duration.between(LocalDateTime.now(), maintDate).getSeconds()); // Seconds to maint date

Loading…
Cancel
Save