fix crash in vending machines

This commit is contained in:
Niklp09 2023-03-10 18:13:04 +01:00
parent 7c22e9c699
commit e711524d53

View File

@ -28,6 +28,9 @@ local function reg_simple(name, def)
end
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
if not itemstack then
return
end
local pname = clicker:get_player_name()
local iname = itemstack:get_name()
local dpos = vector.add((vector.multiply(minetest.facedir_to_dir(node.param2), -1)), pos)