From 93bf5d76ae9f5af7996abff7797b26df0ef142ba Mon Sep 17 00:00:00 2001 From: Sebastian Lobinger Date: Thu, 19 Nov 2020 16:41:12 +0000 Subject: [PATCH] reorder rules_alldir in homedecor_lightning/init.lua so it can read by y-axis and then line by line of 2d coordinates if you express the connections in ascii where N is the Node 1 is connected and 0 is not connected: ``` y+0: 010 1N1 010 y+1: 010 111 010 y-1: 010 111 010 ``` This code structure is more easy to read / a very close representation of the sketched layers. --- homedecor_lighting/init.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/homedecor_lighting/init.lua b/homedecor_lighting/init.lua index 7a2ddaf7..2edd3f8e 100644 --- a/homedecor_lighting/init.lua +++ b/homedecor_lighting/init.lua @@ -27,20 +27,20 @@ local word_to_bright = { } local rules_alldir = { - {x = 0, y = 0, z = -1}, -- borrowed from lightstones - {x = 1, y = 0, z = 0}, - {x = -1, y = 0, z = 0}, {x = 0, y = 0, z = 1}, - {x = 1, y = 1, z = 0}, - {x = 1, y = -1, z = 0}, - {x = -1, y = 1, z = 0}, - {x = -1, y = -1, z = 0}, + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = 0, z = -1}, -- borrowed from lightstones {x = 0, y = 1, z = 1}, - {x = 0, y = -1, z = 1}, + {x = -1, y = 1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 1, y = 1, z = 0}, {x = 0, y = 1, z = -1}, - {x = 0, y = -1, z = -1}, + {x = 0, y = -1, z = 1}, + {x = -1, y = -1, z = 0}, {x = 0, y = -1, z = 0}, - {x = 0, y = 1, z = 0} + {x = 1, y = -1, z = 0}, + {x = 0, y = -1, z = -1}, } -- mesecons compatibility