Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f7ec5e4

Browse files
committedSep 12, 2017
Fix invalid node error message of //mix
1 parent 35ad2f0 commit f7ec5e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

Diff for: ‎worldedit_commands/init.lua

+2-5
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,7 @@ minetest.register_chatcommand("/set", {
398398
privs = {worldedit=true},
399399
func = safe_region(function(name, param)
400400
local node = get_node(name, param)
401-
if not node then
402-
worldedit.player_notify(name, "Could not identify node \"" .. param .. "\"")
403-
return
404-
end
401+
if not node then return end
405402

406403
local count = worldedit.set(worldedit.pos1[name], worldedit.pos2[name], node)
407404
worldedit.player_notify(name, count .. " nodes set")
@@ -436,7 +433,7 @@ minetest.register_chatcommand("/mix", {
436433
for nodename in param:gmatch("[^%s]+") do
437434
local node = get_node(name, nodename)
438435
if not node then
439-
worldedit.player_notify(name, "Could not identify node \"" .. name .. "\"")
436+
worldedit.player_notify(name, "Could not identify node \"" .. nodename .. "\"")
440437
return
441438
end
442439
nodes[#nodes + 1] = node

0 commit comments

Comments
 (0)
Please sign in to comment.