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
This commit is contained in:
Luke aka SwissalpS 2022-02-02 17:48:35 +01:00 committed by GitHub
parent 2058c58738
commit b5ec85d037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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