Make API call ignore remoteTrigger if radius is zero or negative

This commit is contained in:
Joshua Thome 2023-04-18 21:35:26 -05:00
parent 2f913fc8b0
commit d6ef412480

View File

@ -206,11 +206,11 @@ namespace NewHorizons
radius = radius,
range = range,
xmlFile = xmlFile,
remoteTrigger = new RemoteTriggerInfo()
remoteTrigger = remoteTriggerRadius > 0f ? new RemoteTriggerInfo()
{
position = null,
radius = remoteTriggerRadius,
},
} : null,
};
return DialogueBuilder.Make(root, null, info, mod);