1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-17 07:00:22 +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

@ -83,7 +83,7 @@ local music = {
}
local is_daytime = function()
return (minetest.env:get_timeofday() > 0.2 and minetest.env:get_timeofday() < 0.8)
return (minetest.get_timeofday() > 0.2 and minetest.get_timeofday() < 0.8)
end
local get_ambience = function(player)
@ -97,12 +97,12 @@ local get_ambience = function(player)
local pos = player:getpos()
pos.y = pos.y+1.5
local nodename = minetest.env:get_node(pos).name
local nodename = minetest.get_node(pos).name
if string.find(nodename, "default:water") then
play_water = true
elseif nodename == "air" then
pos.y = pos.y-1.5
local nodename = minetest.env:get_node(pos).name
local nodename = minetest.get_node(pos).name
if string.find(nodename, "default:water") then
play_splash = true
end