1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-25 21:29:06 +02:00

Fix removed debug funcs

This commit is contained in:
Gerkiz 2024-05-31 23:29:11 +02:00
parent 80de95689d
commit dda25a34b7

View File

@ -127,7 +127,7 @@ function Debug.object_type(object)
end
---Shows the given message if debug is on.
---@param position Position
---@param position MapPosition
---@param message string
function Debug.print_position(position, message)
Debug.print(format('%s %s', serialize(position), message))
@ -147,6 +147,10 @@ end
-- @param func<function>
-- @return boolean
function Debug.is_closure(func)
if debug_getupvalue == nil then
return false
end
local i = 1
while true do
local n = debug_getupvalue(func, i)