1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-14 03:40:21 +02:00

Replaced most uses of get_modpath() with variables cached at the top of init.lua

This commit is contained in:
Vanessa Ezekowitz
2013-10-09 12:27:49 -04:00
parent 2d3a3f21ef
commit 2550672352
18 changed files with 59 additions and 57 deletions

View File

@ -3,8 +3,8 @@
-- 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")
if intllib_modpath then
dofile(intllib_modpath.."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end