RegExFindComponent doesn't attempt to evaluate the (null) signal when no signal has been received yet.
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Barotrauma.Items.Components
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(expression) || regex == null) return;
|
if (string.IsNullOrWhiteSpace(expression) || regex == null) return;
|
||||||
|
|
||||||
if (receivedSignal != previousReceivedSignal)
|
if (receivedSignal != previousReceivedSignal && receivedSignal != null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user