prevent 'core:empty' item drop

This commit is contained in:
MihailRis 2024-11-29 17:55:31 +03:00
parent a18b169f41
commit 16a6da3753

View File

@ -1,6 +1,9 @@
local base_entities = {}
function base_entities.drop(ppos, itemid, count, pickup_delay)
if itemid == 0 or not itemid then
return nil
end
return entities.spawn("base:drop", ppos, {base__drop={
id=itemid,
count=count,