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