@rian8337/osu-base 4.0.0-beta.30 → 4.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3622,9 +3622,11 @@ class BeatmapHitObjectsDecoder extends SectionDecoder {
|
|
|
3622
3622
|
const vec = new Vector2(this.tryParseFloat(temp[0], -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE), this.tryParseFloat(temp[1], -ParserConstants.MAX_COORDINATE_VALUE, ParserConstants.MAX_COORDINATE_VALUE));
|
|
3623
3623
|
points.push(vec.subtract(position));
|
|
3624
3624
|
}
|
|
3625
|
-
// A special case for
|
|
3626
|
-
//
|
|
3627
|
-
if (
|
|
3625
|
+
// A special case for Catmull sliders where the first control point is in the position of the slider.
|
|
3626
|
+
// This results in a duplicate (0, 0) point in the path.
|
|
3627
|
+
if (pathType == exports.PathType.Catmull &&
|
|
3628
|
+
points.length >= 2 &&
|
|
3629
|
+
points[0].equals(points[1])) {
|
|
3628
3630
|
points.shift();
|
|
3629
3631
|
}
|
|
3630
3632
|
// Edge-case rules (to match stable).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-base",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.31",
|
|
4
4
|
"description": "Base module for all osu! related modules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osu",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "39d3f8d4e23493a0ee772603b022a826951a2f42"
|
|
46
46
|
}
|