From 06a3ca62655bf67570975c3cb441174383f9fc70 Mon Sep 17 00:00:00 2001 From: sys4 Date: Mon, 16 Aug 2021 21:35:00 +0200 Subject: [PATCH] Fix crash when right clic with no wielded item on pot --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 0664f06..8d35a57 100644 --- a/init.lua +++ b/init.lua @@ -655,6 +655,7 @@ for _, row in ipairs(witchcraft.pot_new) do --change 'pot_new' to 'pot' for the }, on_rightclick = function(pos, node, clicker, itemstack, _) local wield_item = itemstack:get_name() + if wield_item == "" then return nil end if wield_item == "vessels:glass_bottle" then local wield_items_count = itemstack:get_count()