optimize: remove early localplayer ref
This commit is contained in:
parent
bab90b2710
commit
c23b8fc00c
@ -4,6 +4,7 @@
|
||||
|
||||
-- texture is a prefix
|
||||
local function remove_drops(texture)
|
||||
if not minetest.localplayer then return end
|
||||
local obj = minetest.localplayer.get_nearby_objects(10000)
|
||||
|
||||
for i, v in ipairs(obj) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user