small fixes

This commit is contained in:
unknown 2021-11-28 14:32:38 -05:00
parent daf04bd400
commit 2e2d904261
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
home_vending_machines.register_currency("default:gold_ingot", 1)
home_vending_machines.register_currency("currency:minegeld_cent_25", 1)
home_vending_machines.register_machine("simple", "home_workshop_misc:soda_machine", {
description = "Soda vending machine",

View File

@ -79,7 +79,7 @@ minetest.register_node("home_workshop_misc:beer_mug", {
sounds = default.node_sound_glass_defaults(),
selection_box = beer_cbox,
on_use = function(itemstack, user, pointed_thing)
if not minetest.is_creative_enabled_for(user:get_player_name()) then
if not minetest.is_creative_enabled(user:get_player_name()) then
minetest.do_item_eat(2, "vessels:drinking_glass 1", itemstack, user, pointed_thing)
return itemstack
end