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:
@ -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
|
||||
|
Reference in New Issue
Block a user