optimize: remove early localplayer ref

wsc-master-rebase
cora 2021-01-21 11:41:32 +01:00 committed by Schmappie Eldress
parent 0953f112e5
commit a825bdf8f3
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