optimize: remove early localplayer ref
parent
0953f112e5
commit
a825bdf8f3
|
@ -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…
Reference in New Issue