mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 05:42:27 +01:00
Mark pickup sound as ephemeral
This commit is contained in:
parent
1545f82cb7
commit
d19d00d690
2
init.lua
2
init.lua
@ -99,7 +99,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
|
|||||||
minetest.sound_play("item_drop_pickup", {
|
minetest.sound_play("item_drop_pickup", {
|
||||||
pos = pos,
|
pos = pos,
|
||||||
gain = pickup_gain,
|
gain = pickup_gain,
|
||||||
})
|
}, true)
|
||||||
if pickup_particle then
|
if pickup_particle then
|
||||||
local item = minetest.registered_nodes[
|
local item = minetest.registered_nodes[
|
||||||
ent.itemstring:gsub("(.*)%s.*$", "%1")]
|
ent.itemstring:gsub("(.*)%s.*$", "%1")]
|
||||||
|
Loading…
Reference in New Issue
Block a user