summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-09-08 08:34:21 +0200
committersfan5 <sfan5@live.de>2012-09-08 08:34:21 +0200
commita429e104a24b4d218733056dff4d681ec76036da (patch)
treed72b4d88b635f1d111d2c32ea7730190d2917bcd
parentce9ce35a20c9280813161b6783aac39c15ed1f70 (diff)
Fix //replace <something> air
-rw-r--r--functions.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.lua b/functions.lua
index 53e5e20..00f73fc 100644
--- a/functions.lua
+++ b/functions.lua
@@ -50,6 +50,9 @@ worldedit.replace = function(pos1, pos2, searchnode, replacenode)
if minetest.registered_nodes[searchnode] == nil then
searchnode = "default:" .. searchnode
end
+ if minetest.registered_nodes[replacenode] == nil then
+ replacenode = "default:" .. replacenode
+ end
local pos = {x=pos1.x, y=0, z=0}
local node = {name=replacenode}