summaryrefslogtreecommitdiff
path: root/server/src/vm/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r--server/src/vm/vm.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index 332f4a69..afe455d5 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -1128,7 +1128,10 @@ function mt:eachSource(callback)
end
local sources = self.sources
for i = 1, #sources do
- callback(sources[i])
+ local res = callback(sources[i])
+ if res ~= nil then
+ return res
+ end
end
end