restore accidentally removed check

This commit is contained in:
Isidor Zeuner 2017-06-28 18:32:17 +02:00
parent 7166c89f02
commit 337c1e6d27
1 changed files with 4 additions and 0 deletions

View File

@ -456,6 +456,10 @@ minetest.register_chatcommand("/replaceinverse", {
})
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+(.+)$")
if found == nil then
worldedit.player_notify(name, "invalid usage: " .. param)