From f9d9266198cb54cadb7e75815a39bf2ce29ff045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 28 Mar 2019 15:31:04 +0800 Subject: =?UTF-8?q?=E8=A7=A3=E5=86=B3=20x=20or=200=20+=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/vm.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/src/vm/vm.lua') 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 -- cgit v1.2.3