Update init.lua

Co-Authored-By: HybridDog <3192173+HybridDog@users.noreply.github.com>
This commit is contained in:
Loïc Blot 2020-04-15 18:22:19 +02:00 committed by GitHub
parent 931788bc9f
commit 59211b0921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,11 +263,6 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
local pos = player:get_pos()
pos.y = pos.y+0.5
local inv = player:get_inventory()
if not inv then
minetest.log("error", "[item_drop] Couldn't " ..
"get inventory")
return
end
local objectlist = minetest.get_objects_inside_radius(pos,
magnet_mode and magnet_radius or pickup_radius)