diff options
author | sfan5 <sfan5@live.de> | 2012-09-08 08:34:21 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2012-09-08 08:34:21 +0200 |
commit | a429e104a24b4d218733056dff4d681ec76036da (patch) | |
tree | d72b4d88b635f1d111d2c32ea7730190d2917bcd | |
parent | ce9ce35a20c9280813161b6783aac39c15ed1f70 (diff) |
Fix //replace <something> air
-rw-r--r-- | functions.lua | 3 |
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}
|