File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lua/entities/gmod_wire_fpga Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,7 @@ function ENT:Run(changedNodes)
682682 if self .Debug then print (" \n ================================================================================" ) end
683683
684684 -- Extra
685- if self .ExecutionCount != nil then
686- self .ExecutionCount = self .ExecutionCount + 1
687- end
685+ self .ExecutionCount = self .ExecutionCount + 1
688686 local bench = SysTime ()
689687 self .CurrentExecution = bench
690688
@@ -797,12 +795,14 @@ function ENT:Run(changedNodes)
797795
798796 if gate .isInput then
799797 value = {self .InputValues [nodeId ]}
798+ loopDetectionNodeId = nil
800799 elseif gate .isConstant then
801800 if gate .outputtypes [1 ] == " STRING" then
802801 value = { WireLib .ParseEscapes (node .value ) }
803802 else
804803 value = {node .value }
805804 end
805+ loopDetectionNodeId = nil
806806 else
807807 if nodeId == loopDetectionNodeId and # nodeQueue == loopDetectionSize then
808808 -- infinite loop...
You can’t perform that action at this time.
0 commit comments