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

@ -15,7 +15,7 @@ function hp_bar:on_step(dtime)
if wielder == nil then
self.object:remove()
return
elseif minetest.env:get_player_by_name(wielder:get_player_name()) == nil then
elseif minetest.get_player_by_name(wielder:get_player_name()) == nil then
self.object:remove()
return
end
@ -28,7 +28,7 @@ minetest.register_entity("gauges:hp_bar", hp_bar)
function add_HP_gauge(pl)
local pos = pl:getpos()
local ent = minetest.env:add_entity(pos, "gauges:hp_bar")
local ent = minetest.add_entity(pos, "gauges:hp_bar")
if ent ~= nil then
ent:set_attach(pl, "", {x = 0, y = 10, z = 0}, {x = 0, y = 0, z = 0})
ent = ent:get_luaentity()