From 30b0dd9557aa72ca787d108424e90e8969df0641 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Tue, 16 Aug 2016 10:30:08 +0200 Subject: [PATCH] attempt to fix #20 M src/falling_snow.lua --- src/falling_snow.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/falling_snow.lua b/src/falling_snow.lua index 0c0cc0f..9ec6973 100644 --- a/src/falling_snow.lua +++ b/src/falling_snow.lua @@ -106,7 +106,9 @@ local function cold_perlin_test(x, y) end v = minetest.get_perlin(112,3, 0.5, perlin_scale):get2d({x=x, y=y}) >= rarity - cold_perl_values[y][x] = v + if cold_perl_values[y] then + cold_perl_values[y][x] = v + end return v end