Skip to content

Commit

Permalink
Removed wacky fix..
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismoh committed Nov 29, 2023
1 parent 51d26ce commit 005ae0e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions mods/noita-mp/lua_modules/share/lua/5.1/pprint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,13 @@ local function cache_apperance(obj, cache, option)
cache.visited_tables[obj] = cache.visited_tables[obj] + 1
return
end
local metatable = getmetatable(obj) -- TODD: wacky fix for missing __pairs
if metatable and metatable.__pairs then -- TODD: wacky fix for missing __pairs
for k, v in pairs(obj) do
cache_apperance(k, cache, option)
cache_apperance(v, cache, option)
end
local mt = getmetatable(obj)
if mt and option.show_metatable then
cache_apperance(mt, cache, option)
end
for k, v in pairs(obj) do
cache_apperance(k, cache, option)
cache_apperance(v, cache, option)
end
local mt = getmetatable(obj)
if mt and option.show_metatable then
cache_apperance(mt, cache, option)
end
end
end
Expand Down

0 comments on commit 005ae0e

Please sign in to comment.