mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-01 15:40:39 +02:00
restore accidentally removed check
This commit is contained in:
@ -456,6 +456,10 @@ minetest.register_chatcommand("/replaceinverse", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
local check_sphere = function(name, param)
|
local check_sphere = function(name, param)
|
||||||
|
if worldedit.pos1[name] == nil then
|
||||||
|
worldedit.player_notify(name, "no position 1 selected")
|
||||||
|
return nil
|
||||||
|
end
|
||||||
local found, _, radius, nodename = param:find("^(%d+)%s+(.+)$")
|
local found, _, radius, nodename = param:find("^(%d+)%s+(.+)$")
|
||||||
if found == nil then
|
if found == nil then
|
||||||
worldedit.player_notify(name, "invalid usage: " .. param)
|
worldedit.player_notify(name, "invalid usage: " .. param)
|
||||||
|
Reference in New Issue
Block a user