mirror of
				https://github.com/mt-mods/home_workshop_modpack.git
				synced 2025-11-04 09:55:33 +01:00 
			
		
		
		
	fix crash due nil itemstack
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user