diff --git a/mods/painting/init.lua b/mods/painting/init.lua index 121a48b..e95ce8c 100644 --- a/mods/painting/init.lua +++ b/mods/painting/init.lua @@ -292,7 +292,7 @@ local function draw_input(self, name, x,y, as_line) end end else -- Draw just single point. - if self.grid then + if self.grid and self.grid[x] and self.grid[x][y] then self.grid[x][y] = colors[name] end end