forked from Mineclonia/Mineclonia
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
|
@ -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 New Issue