auto-git:

[change] src/document/scene-document-validation.ts
This commit is contained in:
2026-05-01 16:22:11 +02:00
parent 6adeefb3ab
commit d409147c8b

View File

@@ -3203,6 +3203,32 @@ function validatePlayerStartEntity(
); );
} }
if (!isBoolean(entity.movementTemplate?.edgeAssist?.enabled)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-player-start-edge-assist-enabled",
"Player Start edge assist enabled setting must be a boolean.",
`${path}.movementTemplate.edgeAssist.enabled`
)
);
}
if (
!isNonNegativeFiniteNumber(
entity.movementTemplate?.edgeAssist?.pushToTopHeight
)
) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-player-start-push-to-top-height",
"Player Start push-to-top height must remain a finite number zero or greater.",
`${path}.movementTemplate.edgeAssist.pushToTopHeight`
)
);
}
if ( if (
!isPlayerStartKeyboardBindingCode( !isPlayerStartKeyboardBindingCode(
entity.inputBindings?.keyboard.moveForward entity.inputBindings?.keyboard.moveForward