mirror of
https://github.com/mt-mods/home_workshop_modpack.git
synced 2025-03-14 16:50:23 +01:00
fix crash in vending machines
This commit is contained in:
parent
7c22e9c699
commit
e711524d53
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user