1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-24 18:35:20 +01:00

remove deprecated minetest.env

This commit is contained in:
2015-03-10 17:14:34 +01:00
parent 2cb1438e99
commit a5a932c8ed
3 changed files with 14 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ local FISHING_BOBBER_ENTITY_SHARK={
on_step = function(self, dtime)
local pos = self.object:getpos()
if BOBBER_CHECK_RADIUS > 0 then
local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, BOBBER_CHECK_RADIUS)
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, BOBBER_CHECK_RADIUS)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name == "fishing:bobber_entity_shark" then