mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
Removed global variables and fixed comparaison with nil
- Removed global variables in mods/snow/src/ - Fixed crash with unconfigured value in mods/plantlife_modpack/nature_classic/global_function.lua
This commit is contained in:
parent
31a6b257f5
commit
e6bb61ffe5
@ -43,7 +43,10 @@ end
|
|||||||
|
|
||||||
function nature:grow_node(pos, nodename)
|
function nature:grow_node(pos, nodename)
|
||||||
if pos ~= nil then
|
if pos ~= nil then
|
||||||
local light_enough = minetest.get_node_light(pos, nil)
|
if not minetest.get_node_light(pos, nil) or not nature.minimum_growth_light then return end
|
||||||
|
-- FIXME: WARN VANESSAE, OR MAYBE IT IS A MISSING CONFIGURATION'S PARAMETER
|
||||||
|
|
||||||
|
local light_enough = minetest.get_node_light(pos, nil)
|
||||||
>= nature.minimum_growth_light
|
>= nature.minimum_growth_light
|
||||||
|
|
||||||
if is_not_young(pos) and light_enough then
|
if is_not_young(pos) and light_enough then
|
||||||
|
@ -66,7 +66,7 @@ end
|
|||||||
|
|
||||||
--Christmas easter egg
|
--Christmas easter egg
|
||||||
minetest.register_on_mapgen_init( function()
|
minetest.register_on_mapgen_init( function()
|
||||||
if skins then
|
if minetest.get_modpath("skins") ~= nil then
|
||||||
skins.add("character_snow_man")
|
skins.add("character_snow_man")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -62,6 +62,9 @@ end
|
|||||||
-- Sled entity
|
-- Sled entity
|
||||||
--
|
--
|
||||||
|
|
||||||
|
local HUD
|
||||||
|
-- FIXME: FIND WHAT IS HUD FOR
|
||||||
|
|
||||||
local sled = {
|
local sled = {
|
||||||
physical = false,
|
physical = false,
|
||||||
collisionbox = {-0.6,-0.25,-0.6, 0.6,0.3,0.6},
|
collisionbox = {-0.6,-0.25,-0.6, 0.6,0.3,0.6},
|
||||||
|
@ -271,6 +271,9 @@ for _, name in pairs(snow_nodes) do
|
|||||||
local groups = {}
|
local groups = {}
|
||||||
for k, v in pairs(ndef.groups) do groups[k] = v end
|
for k, v in pairs(ndef.groups) do groups[k] = v end
|
||||||
|
|
||||||
|
local drop
|
||||||
|
-- FIXME: FIND WHAT IS DROP SUPPOSED TO BE FROM AND FOR WHAT IT IS HERE
|
||||||
|
|
||||||
stairsplus:register_all("moreblocks", name, nodename, {
|
stairsplus:register_all("moreblocks", name, nodename, {
|
||||||
description = ndef.description,
|
description = ndef.description,
|
||||||
drop = drop,
|
drop = drop,
|
||||||
|
Loading…
Reference in New Issue
Block a user