1
0
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:
LeMagnesium
2014-11-08 18:36:57 +01:00
parent 28c92fbaa8
commit 27836d2835
57 changed files with 442 additions and 441 deletions

View File

@ -22,13 +22,13 @@ minetest.register_abm({
interval = 1,
chance = 1,
action = function(pos, node)
if minetest.env:find_node_near(pos, 1, {"default:water_source",
if minetest.find_node_near(pos, 1, {"default:water_source",
"default:water_flowing","default:lava_source",
"default:lava_flowing"}) then
minetest.sound_play("fire_extinguish",
{gain = 1.0, max_hear_distance = 20,})
node.name = "air"
minetest.env:set_node(pos, node)
minetest.set_node(pos, node)
end
end
})

View File

@ -15,9 +15,9 @@ minetest.register_craftitem("fake_fire:old_flint_and_steel", {
stack_max = 1,
liquids_pointable = false,
on_use = function(itemstack, user, pointed_thing)
n = minetest.env:get_node(pointed_thing)
n = minetest.get_node(pointed_thing)
if pointed_thing.type == "node" then
minetest.env:add_node(pointed_thing.above,
minetest.add_node(pointed_thing.above,
{name="fake_fire:fake_fire"})
minetest.sound_play("",
{gain = 1.0, max_hear_distance = 20,})