mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-11-04 05:55:28 +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:
		@@ -43,7 +43,10 @@ end
 | 
			
		||||
 | 
			
		||||
function nature:grow_node(pos, nodename)
 | 
			
		||||
    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 
 | 
			
		||||
 | 
			
		||||
        if is_not_young(pos) and light_enough then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user