Fix LuaCheck warnings

This commit is contained in:
Panquesito7 2020-05-25 13:22:24 -05:00
parent df220bef35
commit cb5984628d
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68

View File

@ -103,7 +103,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
if pickup_particle then
local item = minetest.registered_nodes[
ent.itemstring:gsub("(.*)%s.*$", "%1")]
local image = ""
local image
if item and item.tiles and item.tiles[1] then
if inventorycube_drawtypes[item.drawtype] then
local tiles = item.tiles