mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-14 06:45:06 +00:00
Use correct location for pumpkin shearing sound
The code for turning an uncarved pumpkin into a carved pumpkin using the shears was using “above” instead of “pointed_thing.above” as the location for its sound. This resulted in a warning being logged when shears were being used on a pumpkin. This patch rectifies the issue.
This commit is contained in:
parent
59b013f766
commit
6381d65dbb
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ if minetest.get_modpath("mcl_farming") then
|
|||
local wear = mcl_autogroup.get_wear(toolname, "shearsy")
|
||||
itemstack:add_wear(wear)
|
||||
end
|
||||
minetest.sound_play({name="default_grass_footstep", gain=1}, {pos = above}, true)
|
||||
minetest.sound_play({name="default_grass_footstep", gain=1}, {pos = pointed_thing.above}, true)
|
||||
local dir = vector.subtract(pointed_thing.under, pointed_thing.above)
|
||||
local param2 = minetest.dir_to_facedir(dir)
|
||||
minetest.swap_node(pointed_thing.under, {name="mcl_farming:pumpkin_face", param2 = param2})
|
||||
|
|
Loading…
Reference in a new issue