diff --git a/init.lua b/init.lua index d05726d..2e04edc 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ local load_time_start = minetest.get_us_time() +math.randomseed(os.time()) -- Functions which can be overridden by mods item_drop = { @@ -99,6 +100,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup", minetest.sound_play("item_drop_pickup", { pos = pos, gain = pickup_gain, + pitch = (100 - (math.random(-2, 2)) * 10) / 100, }) if pickup_particle then local item = minetest.registered_nodes[ diff --git a/sounds/item_drop_pickup.2.ogg b/sounds/item_drop_pickup.2.ogg deleted file mode 100644 index f58bf08..0000000 Binary files a/sounds/item_drop_pickup.2.ogg and /dev/null differ diff --git a/sounds/item_drop_pickup.3.ogg b/sounds/item_drop_pickup.3.ogg deleted file mode 100644 index cf57c94..0000000 Binary files a/sounds/item_drop_pickup.3.ogg and /dev/null differ diff --git a/sounds/item_drop_pickup.4.ogg b/sounds/item_drop_pickup.4.ogg deleted file mode 100644 index bfe99d9..0000000 Binary files a/sounds/item_drop_pickup.4.ogg and /dev/null differ