mirror of
https://github.com/mt-mods/home_workshop_modpack.git
synced 2024-11-15 23:20:22 +01:00
Merge pull request #8 from mt-mods/SwissalpS-patch-1
fix single glass bug
This commit is contained in:
commit
b3ca88e58d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user