summaryrefslogtreecommitdiff
path: root/worldedit_infinity/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_infinity/init.lua')
-rw-r--r--worldedit_infinity/init.lua3
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