mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Used getraw in food mod to remove global variable warns
This commit is contained in:
parent
7b92dc1dd6
commit
896d090e84
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
local S = 0
|
local S = 0
|
||||||
if (intllib) then
|
if rawget(_G, "intllib") then
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
S = intllib.Getter(minetest.get_current_modname())
|
||||||
else
|
else
|
||||||
|
@ -13,7 +13,7 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
|||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
local S = 0
|
local S = 0
|
||||||
if (intllib) then
|
if rawget(_G, "intllib") then
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
S = intllib.Getter(minetest.get_current_modname())
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user