mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-10-05 17:23:09 +02:00
Remove "core" methods aliases
This commit is contained in:
parent
3794faca1f
commit
735d3efcda
19
api.lua
19
api.lua
@ -108,22 +108,3 @@ function wdata.write(fname, data, flags)
|
|||||||
|
|
||||||
return core.safe_file_write(fpath, json_data)
|
return core.safe_file_write(fpath, json_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Aliases
|
|
||||||
--
|
|
||||||
-- @section aliases
|
|
||||||
|
|
||||||
--- Alias of `wdata.read`.
|
|
||||||
--
|
|
||||||
-- @falias minetest.read_world_config
|
|
||||||
if not core.read_world_config then
|
|
||||||
core.read_world_config = wdata.read
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Alias of `wdata.write`.
|
|
||||||
--
|
|
||||||
-- @falias minetest.write_world_config
|
|
||||||
if not core.write_world_config then
|
|
||||||
core.write_world_config = wdata.write
|
|
||||||
end
|
|
||||||
|
@ -3,6 +3,7 @@ next
|
|||||||
----
|
----
|
||||||
- changed wdata.write method to take table parameter "flags" instead of boolean "styled"
|
- changed wdata.write method to take table parameter "flags" instead of boolean "styled"
|
||||||
- added flag option "null_to_table" for wdata.write that converts null values to tables
|
- added flag option "null_to_table" for wdata.write that converts null values to tables
|
||||||
|
- removed "core" methods aliases
|
||||||
|
|
||||||
|
|
||||||
v1.1
|
v1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user