Skip to content

Commit 06ff71d

Browse files
Denneiskllysdal
authored andcommitted
Utilize WireLib.ParseEscapes for string constants
1 parent 3ec6729 commit 06ff71d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/entities/gmod_wire_fpga/init.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,11 @@ function ENT:Run(changedNodes)
805805
if gate.isInput then
806806
value = {self.InputValues[nodeId]}
807807
elseif gate.isConstant then
808-
value = {node.value}
808+
if gate.outputtypes[1] == "STRING" then
809+
value = { WireLib.ParseEscapes(node.value) }
810+
else
811+
value = {node.value}
812+
end
809813
else
810814
if nodeId == loopDetectionNodeId and #nodeQueue == loopDetectionSize then
811815
--infinite loop...

0 commit comments

Comments
 (0)