RegExFindComponent doesn't attempt to evaluate the (null) signal when no signal has been received yet.
This commit is contained in:
@@ -54,9 +54,9 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
public override void Update(float deltaTime, Camera cam)
|
public override void Update(float deltaTime, Camera cam)
|
||||||
{
|
{
|
||||||
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