mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
prevent 'core:empty' item drop
This commit is contained in:
parent
a18b169f41
commit
16a6da3753
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
local base_entities = {}
|
local base_entities = {}
|
||||||
|
|
||||||
function base_entities.drop(ppos, itemid, count, pickup_delay)
|
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={
|
return entities.spawn("base:drop", ppos, {base__drop={
|
||||||
id=itemid,
|
id=itemid,
|
||||||
count=count,
|
count=count,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue