summaryrefslogtreecommitdiff
path: root/tomato.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 /tomato.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'tomato.lua')
-rw-r--r--tomato.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tomato.lua b/tomato.lua
index 9cff4a7..1ed7870 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -4,9 +4,11 @@
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1288375-food-plus-mod-more-food-than-you-can-imagine-v2-9)
]]
+local S = farming.intllib
+
-- tomato
minetest.register_craftitem("farming:tomato", {
- description = "Tomato",
+ description = S("Tomato"),
inventory_image = "farming_tomato.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1")