1
0
Fork 0

Merge pull request 'Fix locationless playing when picking up items' (#1457) from jordan4ibanez/MineClone2-PopSounds:master into master

Reviewed-on: MineClone2/MineClone2#1457
This commit is contained in:
jordan4ibanez 2021-04-04 01:10:19 +00:00
commit f8229def5e
1 changed files with 3 additions and 1 deletions

View File

@ -107,6 +107,8 @@ minetest.register_globalstep(function(dtime)
local name = player:get_player_name()
local pos = player:get_pos()
if tick == true and pool[name] > 0 then
minetest.sound_play("item_drop_pickup", {
pos = pos,
@ -122,7 +124,7 @@ minetest.register_globalstep(function(dtime)
end
local pos = player:get_pos()
local inv = player:get_inventory()
local checkpos = {x=pos.x,y=pos.y + item_drop_settings.player_collect_height,z=pos.z}