You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition EventCallback.onLook is nil after reload. /reload scripts sems to fix the issue thanks to that in reload.lua:
-- need to clear EventCallback.data or we end up having duplicated events on /reload scriptsiftable.contains({RELOAD_TYPE_SCRIPTS, RELOAD_TYPE_ALL}, reloadType) thenEventCallback:clear()
end
Actualy it does it thanks to fact that it loads default eventcallbacks from scripts e.g. default_onLook.lua
Before creating an issue, please ensure:
support matter (use https://otland.net/forums/support.16/ for support)
Steps to reproduce (include any configuration/script required to reproduce)
/reload libs
(Reloaded libs.
shows)onLook
event callback no longer works (function Player:onLook(thing, position, distance)
is called but results with empty description)Expected behaviour
Reloads does not break
lookAt
functionalityActual behaviour
No lookAt text is shown after
reload libs
.Environment
Reproduction environment
The text was updated successfully, but these errors were encountered: