Add validation for maxStepHeight in player start entity

This commit is contained in:
2026-04-11 20:59:30 +02:00
parent c224622a5d
commit 6a3b7bed16

View File

@@ -1206,6 +1206,17 @@ function validatePlayerStartEntity(
);
}
if (!isNonNegativeFiniteNumber(entity.movementTemplate?.maxStepHeight)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-player-start-max-step-height",
"Player Start max step height must remain a finite number zero or greater.",
`${path}.movementTemplate.maxStepHeight`
)
);
}
if (typeof entity.movementTemplate?.capabilities?.jump !== "boolean") {
diagnostics.push(
createDiagnostic(