From b5ec85d03776451ab1b4935714fec0647bfd722e Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Wed, 2 Feb 2022 17:48:35 +0100 Subject: [PATCH] fix single glass bug weirdly this is all it takes to fix https://github.com/mt-mods/home_workshop_modpack/issues/7 closes: https://github.com/mt-mods/home_workshop_modpack/issues/7 --- home_workshop_misc/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home_workshop_misc/init.lua b/home_workshop_misc/init.lua index 6d9414a..71be024 100644 --- a/home_workshop_misc/init.lua +++ b/home_workshop_misc/init.lua @@ -48,9 +48,9 @@ minetest.register_node("home_workshop_misc:beer_tap", { local wieldname = itemstack:get_name() if wieldname == "vessels:drinking_glass" then if inv:room_for_item("main", "home_workshop_misc:beer_mug 1") then + inv:add_item("main", "home_workshop_misc:beer_mug 1") itemstack:take_item() clicker:set_wielded_item(itemstack) - inv:add_item("main", "home_workshop_misc:beer_mug 1") minetest.chat_send_player(clicker:get_player_name(), S("Ahh, a frosty cold beer - look in your inventory for it!")) else