diff options
author | Uberi <azhang9@gmail.com> | 2013-08-16 16:57:35 -0400 |
---|---|---|
committer | Uberi <azhang9@gmail.com> | 2013-08-16 16:57:35 -0400 |
commit | 272541c9dadc57b0f1dfa54c74f8b0173c4dc07d (patch) | |
tree | e54fa7e67f0444ec3be70c9d03d30a02b9edf665 /worldedit_infinity/init.lua | |
parent | 9ab52df56a9a4eac8b85f2641e78a1e33bc6ed25 (diff) |
Changes to support the latest schematic probability specification.
Diffstat (limited to 'worldedit_infinity/init.lua')
-rw-r--r-- | worldedit_infinity/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/worldedit_infinity/init.lua b/worldedit_infinity/init.lua index 31a456b..be79101 100644 --- a/worldedit_infinity/init.lua +++ b/worldedit_infinity/init.lua @@ -1,4 +1,5 @@ worldedit = worldedit or {}
+local minetest = minetest --local copy of global
local get_pointed = function(pos, nearest, distance)
if distance > 100 then
@@ -6,7 +7,7 @@ local get_pointed = function(pos, nearest, distance) end
--check for collision with node
- local nodename = env:get_node(pos).name
+ local nodename = minetest.get_node(pos).name
if nodename ~= "air"
and nodename ~= "default:water_source"
and nodename ~= "default:water_flowing" then
|