Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: getWorldTime a nil value #4606

Merged
merged 2 commits into from
Dec 16, 2023
Merged

Fix: getWorldTime a nil value #4606

merged 2 commits into from
Dec 16, 2023

Conversation

omarcopires
Copy link
Contributor

Pull Request Prelude

Changes Proposed

  1. Sets the function to the current standard.
  2. Fixes minute sampling from 20:35.2 to 20:35.
  3. Turns clock scripts into revscript.
  4. Adds compatibility with previous function.

Issues addressed:

Lua Script Error: [Action Interface]
data/actions/scripts/others/watch.lua:onUse
data/global.lua:92: attempt to call global 'getWorldTime' (a nil value)
stack traceback:
        data/global.lua:92: in function 'getFormattedWorldTime'
        data/actions/scripts/others/watch.lua:2: in function <data/actions/scripts/others/watch.lua:1>

@omarcopires omarcopires changed the title Fix: getFormattedWorldTime a nil value Fix: getWorldTime a nil value Dec 16, 2023
@EPuncker EPuncker merged commit 36b3c89 into otland:master Dec 16, 2023
5 checks passed
@omarcopires omarcopires deleted the fix-getFormattedWorldTime branch December 16, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants