fix use of undeclared global variable

This commit is contained in:
Alexander Minges 2020-05-06 18:26:59 +02:00
parent dec53708d6
commit 2103fd9b34
1 changed files with 1 additions and 1 deletions

View File

@ -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})