sonolus-next-rush-plus-engine 1.5.10 → 1.5.11

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.
Binary file
@@ -267,18 +267,18 @@ export const extendedToLevelData = (data, offset = 0) => {
267
267
  const tsg = getTSG(tsgRef);
268
268
  if (tsg)
269
269
  note.set('#TIMESCALE_GROUP', tsg);
270
- const attachIdx = getField(e, 'attach');
271
- if (typeof attachIdx === 'number' && attachIdx > 0) {
272
- const attachConn = getConn(attachIdx);
270
+ const attachRef = getField(e, 'attach');
271
+ if (attachRef !== undefined && attachRef !== -1) {
272
+ const attachConn = getConn(attachRef);
273
273
  if (attachConn && attachConn.refs['head'] && attachConn.refs['tail']) {
274
274
  note.set('attachHead', attachConn.refs['head']);
275
275
  note.set('attachTail', attachConn.refs['tail']);
276
276
  note.set('isAttached', 1);
277
277
  }
278
278
  }
279
- const slideIdx = getField(e, 'slide');
280
- if (typeof slideIdx === 'number' && slideIdx > 0) {
281
- const slideConn = getConn(slideIdx);
279
+ const slideRef = getField(e, 'slide');
280
+ if (slideRef !== undefined && slideRef !== -1) {
281
+ const slideConn = getConn(slideRef);
282
282
  if (slideConn && slideConn.refs['activeHead']) {
283
283
  note.set('activeHead', slideConn.refs['activeHead']);
284
284
  }
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { extendedToLevelData, type ExtendedEntityData, type ExtendedLevelData }
8
8
  export { susToUSC, mmwsToUSC, uscToLevelData, ucmmwsToLevelData, extendedToLevelData, type ExtendedEntityData, type ExtendedLevelData, };
9
9
  export * from './usc/index.js';
10
10
  export declare const convertToLevelData: (input: string | Uint8Array | USC | LevelData, offset?: number) => LevelData;
11
- export declare const version = "1.5.10";
11
+ export declare const version = "1.5.11";
12
12
  export declare const databaseEngineItem: {
13
13
  readonly name: "next-rush-plus";
14
14
  readonly version: 13;
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ export const convertToLevelData = (input, offset = 0) => {
60
60
  }
61
61
  return uscToLevelData(usc, offset, true, true);
62
62
  };
63
- export const version = '1.5.10';
63
+ export const version = '1.5.11';
64
64
  export const databaseEngineItem = {
65
65
  name: 'next-rush-plus',
66
66
  version: 13,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-next-rush-plus-engine",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "A new Project Sekai inspired engine for Sonolus",
5
5
  "author": "Hyeon2",
6
6
  "repository": {