From 48743b7bd75c274cdc25c963387b98fa65ae0015 Mon Sep 17 00:00:00 2001 From: pingu7867 Date: Tue, 4 Jun 2024 20:20:04 -0400 Subject: [PATCH] wires hack fix for master --- lua/pac3/editor/client/wires.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/pac3/editor/client/wires.lua b/lua/pac3/editor/client/wires.lua index 6cc711d3..fe36e0ce 100644 --- a/lua/pac3/editor/client/wires.lua +++ b/lua/pac3/editor/client/wires.lua @@ -16,8 +16,11 @@ local math_min = math.min local math_cos = math.cos local math_pi = math.pi +local black = Color(0,0,0,100) +local vector_add = Vector(0, 2.5, 0) + local mtVector = FindMetaTable("Vector") -local mtColor = FindMetaTable("Color") +local mtColor = getmetatable(black) local render_startBeam = render.StartBeam local render_endBeam = render.EndBeam local render_addBeam = render.AddBeam @@ -25,9 +28,6 @@ local setVecUnpacked = mtVector.SetUnpacked local setColUnpacked = mtColor.SetUnpacked local colUnpack = mtColor.Unpack -local black = Color(0,0,0,100) -local vector_add = Vector(0, 2.5, 0) - local function DrawHermite(width, x0,y0,x1,y1,c0,c1,alpha,samples) --[[if x0 < 0 and x1 < 0 then return end