From a036df4adb596a5acd19cb5d41899426a71301f3 Mon Sep 17 00:00:00 2001 From: Denneisk Date: Mon, 18 Sep 2023 13:15:03 -0400 Subject: [PATCH] Utilize WireLib.ParseEscapes for string constants --- lua/entities/gmod_wire_fpga/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/entities/gmod_wire_fpga/init.lua b/lua/entities/gmod_wire_fpga/init.lua index 74b7b7e..9f6cc2d 100644 --- a/lua/entities/gmod_wire_fpga/init.lua +++ b/lua/entities/gmod_wire_fpga/init.lua @@ -805,7 +805,11 @@ function ENT:Run(changedNodes) if gate.isInput then value = {self.InputValues[nodeId]} elseif gate.isConstant then - value = {node.value} + if gate.outputtypes[1] == "STRING" then + value = { WireLib.ParseEscapes(node.value) } + else + value = {node.value} + end else if nodeId == loopDetectionNodeId and #nodeQueue == loopDetectionSize then --infinite loop...