|
|
@ -316,16 +316,8 @@ public class Mine extends AbstractGameObject { |
|
|
|
mineOpenTime = mineOpenTime.plusDays(1); |
|
|
|
mineOpenTime = mineOpenTime.plusDays(1); |
|
|
|
mineCloseTime = mineCloseTime.plusDays(1); |
|
|
|
mineCloseTime = mineCloseTime.plusDays(1); |
|
|
|
} |
|
|
|
} |
|
|
|
String aMpMOPEN = "AM"; |
|
|
|
writer.putLocalDateTime(mineOpenTime); |
|
|
|
String aMpMCLOSE = "AM"; |
|
|
|
writer.putLocalDateTime(mineCloseTime); |
|
|
|
if(mineOpenTime.isAfter(LocalDateTime.now().withHour(11).withMinute(59))){ |
|
|
|
|
|
|
|
aMpMOPEN = "PM"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(mineCloseTime.isAfter(LocalDateTime.now().withHour(11).withMinute(59))){ |
|
|
|
|
|
|
|
aMpMCLOSE = "PM"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
writer.putString(mineOpenTime.getHour() + ":" + mineOpenTime.getMinute() + " " + aMpMOPEN); |
|
|
|
|
|
|
|
writer.putString(mineCloseTime.getHour() + ":" + mineCloseTime.getMinute() + " " + aMpMCLOSE); |
|
|
|
|
|
|
|
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); |
|
|
|