From 7db8a5122fac2c4a83616d1e8cae8d5667f3c7c2 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 1 Mar 2015 11:20:12 +0000 Subject: Updated for 0.4.11 dev and above --- fishing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fishing.lua') diff --git a/fishing.lua b/fishing.lua index b47095d..4c831a0 100644 --- a/fishing.lua +++ b/fishing.lua @@ -49,7 +49,7 @@ minetest.register_craftitem("ethereal:fishing_rod_baited", { liquids_pointable = true, on_use = function (itemstack, user, pointed_thing) if pointed_thing and pointed_thing.under then - local node = minetest.env:get_node(pointed_thing.under) + local node = minetest.get_node(pointed_thing.under) if string.find(node.name, "default:water_source") then if math.random(1, 100) < 5 then local inv = user:get_inventory() -- cgit v1.2.3