Apply Luanti rename

This commit is contained in:
sfan5
2024-11-11 09:50:26 +01:00
parent dd5c4e509d
commit 1c16c40ccc
10 changed files with 25 additions and 28 deletions

View File

@ -15,7 +15,7 @@ local function pairs_s(dict)
return ipairs(keys)
end
minetest.register_chatcommand("dumpnodes", {
core.register_chatcommand("dumpnodes", {
description = "Dump node and texture list for use with minetestmapper",
func = function()
local ntbl = {}
@ -30,7 +30,7 @@ minetest.register_chatcommand("dumpnodes", {
ntbl[prefix][name] = true
end
end
local out, err = io.open(minetest.get_worldpath() .. "/nodes.txt", 'wb')
local out, err = io.open(core.get_worldpath() .. "/nodes.txt", 'wb')
if not out then
return true, err
end
@ -39,7 +39,7 @@ minetest.register_chatcommand("dumpnodes", {
out:write('# ' .. prefix .. '\n')
for _, name in pairs_s(ntbl[prefix]) do
local nn = prefix .. ":" .. name
local nd = minetest.registered_nodes[nn]
local nd = core.registered_nodes[nn]
local tiles = nd.tiles or nd.tile_images
if tiles == nil or nd.drawtype == 'airlike' then
print("ignored(2): " .. nn)