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:
@ -68,7 +68,7 @@ local sled = {
|
||||
visual = "mesh",
|
||||
mesh = "sled.x",
|
||||
textures = {"sled.png"},
|
||||
HUD,
|
||||
HUD = nil,
|
||||
|
||||
driver = nil,
|
||||
sliding = false,
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user