mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-06-28 06:12:00 +02:00
Fix some warnings.
This commit is contained in:
@ -13,7 +13,7 @@ if minetest.place_schematic then
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("worldedit_commands") .. "/mark.lua")
|
||||
dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua")
|
||||
dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lua"); safe_region = safe_region or function(callback) return callback end
|
||||
|
||||
local get_position = function(name) --position 1 retrieval function for when not using `safe_region`
|
||||
local pos1 = worldedit.pos1[name]
|
||||
@ -828,7 +828,7 @@ minetest.register_chatcommand("/suppress", {
|
||||
local node = get_node(name, param)
|
||||
local count = worldedit.suppress(worldedit.pos1[name], worldedit.pos2[name], node)
|
||||
worldedit.player_notify(name, count .. " nodes suppressed")
|
||||
end, check_set),
|
||||
end, check_region),
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("/highlight", {
|
||||
@ -839,7 +839,7 @@ minetest.register_chatcommand("/highlight", {
|
||||
local node = get_node(name, param)
|
||||
local count = worldedit.highlight(worldedit.pos1[name], worldedit.pos2[name], node)
|
||||
worldedit.player_notify(name, count .. " nodes highlighted")
|
||||
end, check_set),
|
||||
end, check_region),
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("/restore", {
|
||||
|
Reference in New Issue
Block a user