optimize: remove early localplayer ref

master
cora 2021-01-21 11:41:32 +01:00
parent bab90b2710
commit c23b8fc00c
1 changed files with 1 additions and 0 deletions

View File

@ -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