Minor fixes and adjustments

This commit is contained in:
2025-11-15 14:38:24 +01:00
parent a011603195
commit 266abbf6d0
4 changed files with 31 additions and 16 deletions

View File

@@ -28,11 +28,11 @@ pub fn next(self: *@This()) ?Vector3 {
next_current = next_current.setZ(next_current.getZ() + self.step.getZ());
if (next_current.getZ() > self.max.getZ()) {
self.current = null;
return null;
return current;
}
}
}
self.current = next_current;
return next_current;
return current;
}