|
|
@ -311,8 +311,13 @@ public class Mine extends AbstractGameObject { |
|
|
|
mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(30).withSecond(0).withNano(0); |
|
|
|
mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(30).withSecond(0).withNano(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(LocalDateTime.now().isAfter(mineOpenTime.plusMinutes(30))){ |
|
|
|
|
|
|
|
writer.putLocalDateTime(mineOpenTime.plusDays(1)); |
|
|
|
|
|
|
|
writer.putLocalDateTime(mineOpenTime.plusMinutes(30).plusDays(1)); |
|
|
|
|
|
|
|
} else { |
|
|
|
writer.putLocalDateTime(mineOpenTime); |
|
|
|
writer.putLocalDateTime(mineOpenTime); |
|
|
|
writer.putLocalDateTime(mineOpenTime.plusMinutes(30)); |
|
|
|
writer.putLocalDateTime(mineOpenTime.plusMinutes(30)); |
|
|
|
|
|
|
|
} |
|
|
|
writer.put(mine.isActive ? (byte) 0x01 : (byte) 0x00); |
|
|
|
writer.put(mine.isActive ? (byte) 0x01 : (byte) 0x00); |
|
|
|
|
|
|
|
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|