Skip to content

Commit

Permalink
Fix script wait signal
Browse files Browse the repository at this point in the history
  • Loading branch information
nosyliam authored Jul 23, 2024
1 parent bf3eecb commit afc6710
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions services/grid-bot/lib/utility/Lua/LuaVMTemplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ do
end,

__index = function(self: VirtualizedSignal, key: any): any
if key:lower() == "wait" then
return function(signal)
if signal ~= self._proxy then
return
end
local method = self._signal[key]
method(self._signal)
end
end
if key:lower() == "connect" or key:lower() == "connectparallel" or key:lower() == "once" then
local method = self._signal[key]
if typeof(method) ~= "function" then
Expand Down

0 comments on commit afc6710

Please sign in to comment.