Skip to content

Commit

Permalink
Fix invalid node error message of //mix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Sep 12, 2017
1 parent 35ad2f0 commit f7ec5e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions worldedit_commands/init.lua
Expand Up @@ -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")
Expand Down Expand Up @@ -436,7 +433,7 @@ minetest.register_chatcommand("/mix", {
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 .. "\"")
worldedit.player_notify(name, "Could not identify node \"" .. nodename .. "\"")
return
end
nodes[#nodes + 1] = node
Expand Down

0 comments on commit f7ec5e4

Please sign in to comment.