Fix log method
parent
67fe75aeaf
commit
a3d08ffe2a
2
init.lua
2
init.lua
|
@ -36,7 +36,7 @@ function cmer.log(lvl, msg)
|
|||
lvl = nil
|
||||
end
|
||||
|
||||
msg = "[" .. cmer.modname .. "] " msg
|
||||
msg = "[" .. cmer.modname .. "] " .. msg
|
||||
if not lvl then
|
||||
core.log(msg)
|
||||
else
|
||||
|
|
|
@ -127,7 +127,7 @@ local function translate_def(def)
|
|||
|
||||
if def.stats.has_kockback or def.stats.has_kockback == false then
|
||||
cmer.log("warning",
|
||||
core.get_current_modname()
|
||||
def.name
|
||||
.. ": \"def.stats.has_kockback\" is deprecated, please use \"def.stats.has_knockback\"")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue