Browse Source

realm date time console spam fix

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
4b67cbef38
  1. 5
      src/engine/objects/Realm.java

5
src/engine/objects/Realm.java

@ -316,7 +316,10 @@ public class Realm {
writer.putInt(Enum.GameObjectType.City.ordinal()); writer.putInt(Enum.GameObjectType.City.ordinal());
writer.putInt(rulingCityUUID); writer.putInt(rulingCityUUID);
writer.putLocalDateTime(this.ruledSince); if(this.ruledSince != null)
writer.putLocalDateTime(this.ruledSince);
else
writer.putLocalDateTime(LocalDateTime.now().withMonth(1).withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0));
writer.putString(rulingNationName); writer.putString(rulingNationName);
GuildTag._serializeForDisplay(rulingNationTags, writer); GuildTag._serializeForDisplay(rulingNationTags, writer);

Loading…
Cancel
Save