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
부모 2d3a3f21ef
커밋 2550672352
18개의 변경된 파일59개의 추가작업 그리고 57개의 파일을 삭제

파일 보기

@@ -1,8 +1,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