summaryrefslogtreecommitdiff
path: root/crafts.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-12-27 01:06:09 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-12-27 01:06:09 -0500
commite7f2beda39dca493c584488ad6e037ba53b69fdb (patch)
tree1feaf01782a24956244e795c20a23ffadec708d3 /crafts.lua
parentbc6acccd47d12950f58e34c5c63aa3d85ba97bd9 (diff)
use current intllib API
Diffstat (limited to 'crafts.lua')
-rw-r--r--crafts.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/crafts.lua b/crafts.lua
index 746f2a1..515a097 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -1,11 +1,4 @@
--- Boilerplate to support localized strings if intllib mod is installed.
-local S
-if (minetest.get_modpath("intllib")) then
- dofile(minetest.get_modpath("intllib").."/intllib.lua")
- S = intllib.Getter(minetest.get_current_modname())
-else
- S = function ( s ) return s end
-end
+local S = moretrees.intllib
for i in ipairs(moretrees.treelist) do
local treename = moretrees.treelist[i][1]