summaryrefslogtreecommitdiff
path: root/potato.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
commitcbf7bee93af73f0c5fc3098a81149fb3b884b91b (patch)
tree28bd29fe3933cf94a5d41a5a1488ddc3887d9ed4 /potato.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'potato.lua')
-rw-r--r--potato.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/potato.lua b/potato.lua
index 12a7c6a..be36905 100644
--- a/potato.lua
+++ b/potato.lua
@@ -4,9 +4,11 @@
https://forum.minetest.net/viewtopic.php?id=3948
]]
+local S = farming.intllib
+
-- potato
minetest.register_craftitem("farming:potato", {
- description = "Potato",
+ description = S("Potato"),
inventory_image = "farming_potato.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1")
@@ -16,7 +18,7 @@ minetest.register_craftitem("farming:potato", {
-- baked potato
minetest.register_craftitem("farming:baked_potato", {
- description = "Baked Potato",
+ description = S("Baked Potato"),
inventory_image = "farming_baked_potato.png",
on_use = minetest.item_eat(6),
})