Remove niche debugging function
This commit is contained in:
parent
eb232c1c77
commit
5ede21a464
3 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.7",
|
"version": "2.9.8",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -337,7 +337,6 @@ end
|
||||||
|
|
||||||
function SMODS.current_mod:calculate(context)
|
function SMODS.current_mod:calculate(context)
|
||||||
local _ = type(G.calccontext) == "function" and G.calccontext(context)
|
local _ = type(G.calccontext) == "function" and G.calccontext(context)
|
||||||
local _ = type(G.calckeys) == "function" and G.calckeys(f(context):keys())
|
|
||||||
|
|
||||||
if type(G.calc) == "function" then
|
if type(G.calc) == "function" then
|
||||||
G.calc = {G.calc}
|
G.calc = {G.calc}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ local function protect_ev(fun)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fun.func = protect(fun.func)
|
fun.func = protect(fun.func or fun[1])
|
||||||
return getmetatable(fun) == Event and fun or Event(fun)
|
return getmetatable(fun) == Event and fun or Event(fun)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue