Add files via upload

This commit is contained in:
loosewheel
2021-12-06 21:15:05 +10:00
committed by GitHub
parent ca31c40d8b
commit c43dab66d7
4 changed files with 14 additions and 2 deletions

View File

@@ -135,6 +135,14 @@ end
function utils.item_drop (itemstack, dropper, pos)
if itemstack then
local def = utils.find_item_def (itemstack:get_name ())
if def and def.on_drop then
return def.on_drop (itemstack, dropper, pos)
end
end
return minetest.item_drop (itemstack, dropper, pos)
end