mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 14:16:06 +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:
@ -40,7 +40,7 @@ minetest.register_globalstep(function(dtime)
|
||||
pos = near
|
||||
|
||||
-- am I touching the cactus? if so it hurts
|
||||
for _,object in ipairs(minetest.env:get_objects_inside_radius(pos, 1.0)) do
|
||||
for _,object in ipairs(minetest.get_objects_inside_radius(pos, 1.0)) do
|
||||
if object:get_hp() > 0 then
|
||||
object:set_hp(object:get_hp()-1)
|
||||
end
|
||||
|
Reference in New Issue
Block a user