fix crash due nil itemstack

This commit is contained in:
Niklp09 2023-03-10 17:57:57 +01:00
parent 40b911e184
commit 7c22e9c699

View File

@ -44,6 +44,9 @@ minetest.register_node("home_workshop_misc:beer_tap", {
},
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local inv = clicker:get_inventory()
if not itemstack then
return
end
local wieldname = itemstack:get_name()
if wieldname == "vessels:drinking_glass" then