Minor typo in error message

This commit is contained in:
Joshua Thome 2025-04-15 22:57:12 -05:00
parent 9a458ed7a1
commit f1246810c7

View File

@ -60,7 +60,7 @@ namespace NewHorizons.Builder.Props
{
if (info.hasCollision)
{
throw new NotSupportedException($"Shapes do not support collision; set {info.hasCollision} to false and use a supported collider type (sphere, box, or capsule).");
throw new NotSupportedException($"Shapes do not support collision; set {nameof(info.hasCollision)} to false or use a supported collider type (sphere, box, or capsule).");
}
if (info.useShape.HasValue && !info.useShape.Value)
{