forked from VoxeLibre/VoxeLibre
fix use of undeclared global variable
This commit is contained in:
parent
dec53708d6
commit
2103fd9b34
|
@ -258,7 +258,7 @@ if minetest.get_modpath("mcl_farming") then
|
|||
local wear = math.ceil(65535 / uses)
|
||||
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