Mark pickup sound as ephemeral

This commit is contained in:
sfan5 2021-09-02 23:42:56 +02:00 committed by GitHub
parent 1545f82cb7
commit d19d00d690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")]