From 646e629c698cdd8088496a846bed44b66b43940e Mon Sep 17 00:00:00 2001 From: Maik Wild Date: Mon, 15 Oct 2018 13:50:41 +0200 Subject: [PATCH] fixed debug error --- map_gen/Diggy/Debug.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/map_gen/Diggy/Debug.lua b/map_gen/Diggy/Debug.lua index 761e27f1..375883e2 100644 --- a/map_gen/Diggy/Debug.lua +++ b/map_gen/Diggy/Debug.lua @@ -90,6 +90,10 @@ function Debug.print_grid_value(value, surface, position) b = 0 end + if (g < 0) then + g = 0 + end + r = abs(r) local color = { r = r, g = g, b = b}