summaryrefslogtreecommitdiff
path: root/homedecor/gastronomy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'homedecor/gastronomy.lua')
-rw-r--r--homedecor/gastronomy.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/homedecor/gastronomy.lua b/homedecor/gastronomy.lua
index d261700..8274b3f 100644
--- a/homedecor/gastronomy.lua
+++ b/homedecor/gastronomy.lua
@@ -219,7 +219,7 @@ homedecor.register("soda_machine", {
local fdir_to_fwd = { {0, -1}, {-1, 0}, {0, 1}, {1, 0} }
local fdir = node.param2
local pos_drop = { x=pos.x+fdir_to_fwd[fdir+1][1], y=pos.y, z=pos.z+fdir_to_fwd[fdir+1][2] }
- if wieldname == "homedecor:coin" then
+ if wieldname == "currency:minegeld_cent_25" then
minetest.spawn_item(pos_drop, "homedecor:soda_can")
minetest.sound_play("insert_coin", {
pos=pos, max_hear_distance = 5
@@ -234,3 +234,5 @@ homedecor.register("soda_machine", {
end
end
})
+
+minetest.register_alias("homedecor:coin", "currency:minegeld_cent_25")