Skip to content

Commit 4f52c93

Browse files
authored
Fix script wait signal (#327)
#!components: grid-bot #!deployable-components: grid-bot
1 parent bf3eecb commit 4f52c93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

services/grid-bot/lib/utility/Lua/LuaVMTemplate.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ do
189189
end,
190190

191191
__index = function(self: VirtualizedSignal, key: any): any
192+
if key:lower() == "wait" then
193+
return function(signal)
194+
if signal ~= self._proxy then
195+
return
196+
end
197+
local method = self._signal[key]
198+
method(self._signal)
199+
end
200+
end
192201
if key:lower() == "connect" or key:lower() == "connectparallel" or key:lower() == "once" then
193202
local method = self._signal[key]
194203
if typeof(method) ~= "function" then

0 commit comments

Comments
 (0)