unsoluble / smalltime

A small FoundryVTT module for displaying and controlling the current time of day.
MIT License
23 stars 15 forks source link

Deprecation warning regarding Scene#data object which is no longer used. #174

Closed thatlonelybugbear closed 1 year ago

thatlonelybugbear commented 1 year ago

Foundry 10.291 Dnd5e 2.2.1 SmallTime 1.16.5

Every second a deprecation warning is logged, regarding https://github.com/unsoluble/smalltime/blob/cb068d96639617ad38b97c70ec2f0f8fca736b99/scripts/helpers.mjs#L744, reading the data in

if (newThreshold === game.scenes.viewed.data.globalLightThreshold) {
      return true;
}
unsoluble commented 1 year ago

Ah thanks for catching that. Only occurs when in realtime with Simple Calendar enabled, which I hadn't got around to testing yet. Will patch it out shortly.

unsoluble commented 1 year ago

Fixed in 1.16.6