Browse Source

city bane status update fix

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
931eaaae4a
  1. 4
      src/engine/objects/City.java

4
src/engine/objects/City.java

@ -237,6 +237,7 @@ public class City extends AbstractWorldObject { @@ -237,6 +237,7 @@ public class City extends AbstractWorldObject {
writer.putInt(rulingGuild.getObjectUUID());
writer.putString(rulingGuild.getName());
try {
if (city.getBane() != null) {
Bane bane = city.getBane();
if (bane.daySet && bane.timeSet && bane.getLiveDate() != null) {
@ -251,6 +252,9 @@ public class City extends AbstractWorldObject { @@ -251,6 +252,9 @@ public class City extends AbstractWorldObject {
} else {
writer.putString(city.motto);
}
}catch(Exception e){
writer.putString(city.motto);
}
writer.putString(rulingGuild.getLeadershipType());
// Serialize guild ruler's name

Loading…
Cancel
Save