mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Removing all the olds minetest.env calls
- All the minetest.env calls removed It took me about 2 hours, but I did it, and it works!
This commit is contained in:
@ -35,7 +35,7 @@ minetest.register_craftitem("fishing: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()
|
||||
|
Reference in New Issue
Block a user