mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
[MIRROR] Fixes SS13.register_signal on parent_qdeleting signal in lua causing an error [MDB IGNORE] (#22061)
* Fixes SS13.register_signal on parent_qdeleting signal in lua causing an error (#76282) ## About The Pull Request Potato renamed comp_lookup to _listen_lookup, which wasn't updated in the lua script. This PR changes the SS13 lua script to properly access the correct variable ## Why It's Good For The Game Bugfix ## Changelog Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com> * Fixes SS13.register_signal on parent_qdeleting signal in lua causing an error --------- Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
@@ -80,7 +80,7 @@ function SS13.register_signal(datum, signal, func, make_easy_clear_function)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
if signal == "parent_qdeleting" then --We want to make sure that the cleanup function is the very last signal handler called.
|
if signal == "parent_qdeleting" then --We want to make sure that the cleanup function is the very last signal handler called.
|
||||||
local comp_lookup = datum.vars.comp_lookup
|
local comp_lookup = datum.vars._listen_lookup
|
||||||
if comp_lookup then
|
if comp_lookup then
|
||||||
local lookup_for_signal = comp_lookup.entries.parent_qdeleting
|
local lookup_for_signal = comp_lookup.entries.parent_qdeleting
|
||||||
if lookup_for_signal and not SS13.istype(lookup_for_signal, "/datum") then
|
if lookup_for_signal and not SS13.istype(lookup_for_signal, "/datum") then
|
||||||
|
|||||||
Reference in New Issue
Block a user