diff --git a/init.lua b/init.lua index 52badc9..039fad7 100644 --- a/init.lua +++ b/init.lua @@ -141,8 +141,8 @@ xmaps.create_map_item = function(pos, properties) if pixels[z][x][1] >= 3 then pixels[z][x] = { 3 + ( z % 2 ) } -- stripes if pixels[z][x][1] == 4 then - local color = { 4 + ( ( math.floor( x / 7 ) + math.floor( 1.3 * z * z ) ) % 4 ) } - pixels[z][x] = color + local color = 4 + ( ( math.floor( x / 7 ) + math.floor( 1.3 * z * z ) ) % 4 ) + pixels[z][x] = { color } end if z > 1 and pixels[z-1][x][1] < 3 then pixels[z-1][x] = { 2 }