From e57749f287385b8235620779286b5e258c2c148b Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 29 Nov 2024 09:48:17 -0600 Subject: [PATCH] Add non-debug palette, remove dead code --- mods/ITEMS/REDSTONE/vl_redstone/wire.lua | 11 ++--------- textures/vl_redstone_palette.png | Bin 0 -> 4249 bytes ...palette.png => vl_redstone_palette_debug.png} | Bin 3 files changed, 2 insertions(+), 9 deletions(-) create mode 100644 textures/vl_redstone_palette.png rename textures/{redstone-palette.png => vl_redstone_palette_debug.png} (100%) diff --git a/mods/ITEMS/REDSTONE/vl_redstone/wire.lua b/mods/ITEMS/REDSTONE/vl_redstone/wire.lua index af7f0d14c..5007be48b 100644 --- a/mods/ITEMS/REDSTONE/vl_redstone/wire.lua +++ b/mods/ITEMS/REDSTONE/vl_redstone/wire.lua @@ -1,5 +1,5 @@ local use_texture_alpha = core.features.use_texture_alpha_string_modes and "clip" or true - +local DEBUG = false local box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/64, 1/16} local nodebox_parts = { [0] = {1/16, -.5, -1/16, 8/16, -.5+1/64, 1/16}, -- x positive @@ -15,7 +15,6 @@ local nodebox_parts = { local dust = "redstone_redstone_dust_dot.png" local flat = "(redstone_redstone_dust_dot.png^redstone_redstone_dust_line0.png^(redstone_redstone_dust_line1.png^[transformR90))" local line = "redstone_redstone_dust_line0.png" - local connection_table = { [ 0] = {"vl_redstone:dust", 0}, [ 1] = {"vl_redstone:trail_0", 0}, [ 2] = {"vl_redstone:trail_0", 3}, [ 3] = {"vl_redstone:corner_00", 0}, @@ -146,12 +145,6 @@ local connection_table = { [252] = {"vl_redstone:cross_1111",0}, [253] = {"vl_redstone:cross_1111",0}, [254] = {"vl_redstone:cross_1111",0}, [255] = {"vl_redstone:cross_1111",0}, } -local nodes = { - [0] = "_", [1] = "d", [2] = "S", [3] = "L", -} -local function get_node_for(a,b) - return nodes[a+2*b] -end local parts = { [1] = { 1, 0, 0, 1}, [2] = { 0, 0, 1, 2}, @@ -201,7 +194,7 @@ local base_def = { drawtype = "nodebox", paramtype = "light", paramtype2 = "color4dir", - palette = "redstone-palette.png", + palette = DEBUG and "vl_redstone_palette_debug.png" or "vl_redstone_palette.png", node_box = { type = "fixed", fixed = { diff --git a/textures/vl_redstone_palette.png b/textures/vl_redstone_palette.png new file mode 100644 index 0000000000000000000000000000000000000000..c61ea497f55ce2d7dc5c90518cd1c2f3a6d2e59e GIT binary patch literal 4249 zcmeHLdvFs)7{4^7#6rR0Wv7DNoH{)8a*teIH%%)fr45oAONGd&u(|BD2T3lyyEZ8f z1A_QK#8L5u6;bhtgO2=zqoR&Djsofc>iFO>1swzh1xH{2>vxy*rOY^;k^g!(oBi(F z-~M*@x8Hur<^E`WZCPnWDM1ir;kr-*)R&vZQ39V6Pjw-vzQnPx91c$<9Pj{0TQOlX zF;HxM>>`_;u!HX&D5JnOF=nZ-4YBIgU|(6V*MdE{fGGl-vlS6#P8K-)I-&d6li{pP|T zu&h*q!Du)bBr}>SD@jZcxsD|d2kJh$Vf@GQXTSLTV*7}5v7-m4I+jl)KOa%Q%GuD_^~m%G%15p__xthv zhmKDm_ue>bix^+_(%hYmlv94|y7P$@XnbHqt+ifc2(83{Wa~6pMJZ# z_KkI0$`6jdU)srDxBb}mJx`BaajL52$+7scGab1fHVzwAt=-;o_CftabXU_oyNrcv ze6y|}_gzep<_PZ2DV_Jd_VZdMaoZff+Vb_xTfTmG(o)2}%rGs_{6vn5eL!7vUo`r0 z$;?;CnVafYtsL{~CxP?!HS?(_rf)7|wVf{vFMI3I(5@8+_RTx{>1Ez2PjIB!7act}3m}i9nFT1|oB*WLg(<0m|YP!8Y9tMOqMJQGkj; zAO%$olY&!lvUE*OY2&G?QnFG@$YMiiMu7sJ0#vhMWJHF^X0y($%c*Kj4CnXz8J1^w zo(2T1x2Fx1qtp7;CPkhjgmp<%GKQk2Ns|-B)m9@wQP56y&o7mUM0)7cdO-!ygUO)` z!#Po=r%CtmoXc6dwJA{;wDXjs6@%Wvofg?K;;tn zge*Z^us$zK3vu2>$7RIQoL6#t69~C|tZY#wByonSr4VeVl0r?G$)uaC22*fxS~MJ> zcqiNIi6)UDLx%u0OG&rpdK(&*6rOD$Q%%n6;(dNM=M}tu7t4EkL36OCLnNA(FFKPDCHD3PRfC`2UXm!P9IoUrBz zT=^!c8Ks*rWRF6)cKel!go2xOd$1Ju(H_C&qXiEy(|*>4z(R43^$UU71!D>eX3U(?z2ZvdUz$`}fIdkE z`sIC)ydW1cJ;|`3nVEJj;Z>025{>}WgM$o6-$A(sDth+(76Vk6ddl!J4q z5suUhJu+;{DXi9*VKnLPhYV7Z*cUOt^fc4 literal 0 HcmV?d00001 diff --git a/textures/redstone-palette.png b/textures/vl_redstone_palette_debug.png similarity index 100% rename from textures/redstone-palette.png rename to textures/vl_redstone_palette_debug.png