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, radius = radius,
range = range, range = range,
xmlFile = xmlFile, xmlFile = xmlFile,
remoteTrigger = new RemoteTriggerInfo() remoteTrigger = remoteTriggerRadius > 0f ? new RemoteTriggerInfo()
{ {
position = null, position = null,
radius = remoteTriggerRadius, radius = remoteTriggerRadius,
}, } : null,
}; };
return DialogueBuilder.Make(root, null, info, mod); return DialogueBuilder.Make(root, null, info, mod);