1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Passage de globales en locales

Adaptation des variables global en local pour la version 4.11
This commit is contained in:
guillaume
2015-01-11 21:25:25 +01:00
parent 3126d8a40d
commit 715ca50df1
17 changed files with 35 additions and 25 deletions

View File

@ -68,7 +68,7 @@ local sled = {
visual = "mesh",
mesh = "sled.x",
textures = {"sled.png"},
HUD,
HUD = nil,
driver = nil,
sliding = false,

View File

@ -264,7 +264,7 @@ local snow_nodes = {
"snow_brick",
"snow_cobble",
}
local drop = nil
for _, name in pairs(snow_nodes) do
local nodename = "snow:"..name
local ndef = minetest.registered_nodes[nodename]

View File

@ -48,7 +48,7 @@ local function loadConfig(path)
io.close(file)
for line in io.lines(path) do
if line:sub(1,1) ~= "#" then
i, v = line:match("^(%S*) = (%S*)")
local i, v = line:match("^(%S*) = (%S*)")
if i and v then
if v == "true" then v = true end
if v == "false" then v = false end