Skip to content
Permalink
Browse files

Fix invalid node error message of //set and //mix

  • Loading branch information...
sfan5 committed Sep 12, 2017
1 parent 35ad2f0 commit 283f47f10d1bb4f119a2021404ff49c2f32065f5
Showing with 2 additions and 8 deletions.
  1. +2 −8 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

0 comments on commit 283f47f

Please sign in to comment.
You can’t perform that action at this time.