@jtff/miztemplate-lib 3.8.6 → 3.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,7 @@ end
77
77
 
78
78
  function getCaseTypeFromWeather(CVNCoordinates, recovery_start, recovery_stop)
79
79
  if (CVNCoordinates) then
80
- if (type(CVNCoordinates:GetSunset(true)) ~= "nil" and type(CVNCoordinates:GetSunrise(true)) ~= "nil" ) then
80
+ if (type(tonumber(CVNCoordinates:GetSunset(true))) ~= "nil" and type(tonumber(CVNCoordinates:GetSunrise(true))) ~= "nil" ) then
81
81
  if ((timer.getAbsTime() >= (tonumber(CVNCoordinates:GetSunset(true)) - 30*60)) or (timer.getAbsTime() <= (tonumber(CVNCoordinates:GetSunrise(true)) + 30*60))) then
82
82
  --Navy Night conditions
83
83
  jtff_log.info("CASE III weather : Navy Night", "AIRBOSS")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [