|
|
|
@ -286,8 +286,15 @@ public class Mine extends AbstractGameObject {
@@ -286,8 +286,15 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
mineOpenTime = guildMineTime.plusDays(1); |
|
|
|
|
else |
|
|
|
|
mineOpenTime = guildMineTime; |
|
|
|
|
|
|
|
|
|
// If a mine is active serialize current datetime irrespective
|
|
|
|
|
// of any claim
|
|
|
|
|
|
|
|
|
|
if (mine.isActive == true) |
|
|
|
|
mineOpenTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writer.putLocalDateTime(mineOpenTime); |
|
|
|
|
writer.putLocalDateTime(mineOpenTime.plusHours(1)); |
|
|
|
|
writer.put(mine.isActive ? (byte) 0x01 : (byte) 0x00); |
|
|
|
|