cli/validator: fix minimum y value
This commit is contained in:
@@ -25,7 +25,7 @@ def validate_no_invalid_y_values() -> list:
|
||||
for marker_set in marker_sets:
|
||||
for marker in marker_set.markers:
|
||||
if isinstance(marker, Point):
|
||||
if marker.y < 0 or marker.y > 255:
|
||||
if marker.y < -64 or marker.y > 255:
|
||||
result.append(
|
||||
{
|
||||
"error_type": "invalid_y_value",
|
||||
@@ -40,7 +40,7 @@ def validate_no_invalid_y_values() -> list:
|
||||
elif isinstance(marker, Track):
|
||||
for i, point in enumerate(marker.points):
|
||||
_, y, _ = point
|
||||
if y < 0 or y > 255:
|
||||
if y < -64 or y > 255:
|
||||
result.append(
|
||||
{
|
||||
"error_type": "invalid_y_value",
|
||||
|
||||
@@ -511,7 +511,7 @@ MARKER_SET = MarkerSet(
|
||||
(-756, 25, -218),
|
||||
(-765, 25, -218),
|
||||
],
|
||||
)
|
||||
),
|
||||
Track(
|
||||
name="Chikatetsu Kyassuru-sen",
|
||||
points=[
|
||||
|
||||
Reference in New Issue
Block a user