From ccae29c7a288aa200fdab3b2ec4bd2688786d601 Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 10 Apr 2019 20:45:07 +0800 Subject: =?UTF-8?q?=E9=9D=9E=E5=AD=97=E9=9D=A2=E9=87=8F=E5=8F=AA=E8=83=BD?= =?UTF-8?q?=E8=8E=B7=E5=BE=970.9=E7=9A=84=E6=8E=A8=E6=96=AD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.lua | 2 +- server/src/vm/vm.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/main.lua b/server/main.lua index 1895f804..dd0c53d3 100644 --- a/server/main.lua +++ b/server/main.lua @@ -21,7 +21,7 @@ local function tryDebugger() log.info('Debugger startup, listen port: 11411') end ---pcall(tryDebugger) +pcall(tryDebugger) require 'utility' require 'global_protect' diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index 5091a1bc..5b686bd5 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -247,7 +247,7 @@ function mt:callLibrary(func, values, source, lib) for i, arg in ipairs(lib.args) do local value = values[i] if value and arg.type ~= '...' then - value:setType(arg.type, 1.0) + value:setType(arg.type, 0.9) end end end @@ -261,7 +261,7 @@ function mt:callLibrary(func, values, source, lib) end local value = func:getReturn(i) if value then - value:setType(rtn.type or 'any', 1.0) + value:setType(rtn.type or 'any', 0.9) end end end -- cgit v1.2.3