diff options
author | sfan5 <sfan5@live.de> | 2017-09-12 14:52:04 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-09-12 14:56:01 +0200 |
commit | 283f47f10d1bb4f119a2021404ff49c2f32065f5 (patch) | |
tree | 1fa8a00f082de2de6f48c564010cced030962269 | |
parent | 35ad2f031d1ce0b0e702cf95728a82795ef8c261 (diff) |
Fix invalid node error message of //set and //mix
-rw-r--r-- | worldedit_commands/init.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 1ab8c19..a102dbc 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -398,10 +398,7 @@ minetest.register_chatcommand("/set", { privs = {worldedit=true},
func = safe_region(function(name, param)
local node = get_node(name, param)
- if not node then
- worldedit.player_notify(name, "Could not identify node \"" .. param .. "\"")
- return
- end
+ if not node then return end
local count = worldedit.set(worldedit.pos1[name], worldedit.pos2[name], node)
worldedit.player_notify(name, count .. " nodes set")
@@ -435,10 +432,7 @@ minetest.register_chatcommand("/mix", { local nodes = {}
for nodename in param:gmatch("[^%s]+") do
local node = get_node(name, nodename)
- if not node then
- worldedit.player_notify(name, "Could not identify node \"" .. name .. "\"")
- return
- end
+ if not node then return end
nodes[#nodes + 1] = node
end
|