json_lua/feature_overwrite.lua
AliasAlreadyTaken 5b49244fce First attempt
2024-03-20 03:50:19 +01:00

8 lines
249 B
Lua

if json_lua.settings.overwrite_enabled == true then
-- replace minetest.parse_json (json -> lua)
minetest.parse_json = json_lua.json.encode
-- replace minetest.write_json (lua -> json)
minetest.write_json = json_lua.json.decode
end