qqq
This commit is contained in:
parent
acf93ec6df
commit
ee22e1a929
49 changed files with 1380 additions and 338 deletions
|
|
@ -25,6 +25,7 @@
|
|||
const FIRE_TYPE_ID = ITEM_TYPE_IDS.indexOf("fire");
|
||||
const FIRECRACKER_TYPE_ID = ITEM_TYPE_IDS.indexOf("firecracker");
|
||||
const FLAME_FIRECRACKER_TYPE_ID = ITEM_TYPE_IDS.indexOf("flame_firecracker");
|
||||
const BALLOON_TYPE_ID = ITEM_TYPE_IDS.indexOf("balloon");
|
||||
|
||||
const textEncoder = new TextEncoder();
|
||||
const textDecoder = new TextDecoder();
|
||||
|
|
@ -627,7 +628,7 @@
|
|||
writeBitFields(writer, [Math.max(0, Math.min(0x3f, Number(extra[0] ?? 3) | 0)), extra[1] ? 1 : 0], [6, 1]);
|
||||
} else if (JSON_EXTRA_ITEM_TYPE_IDS.has(typeId)) {
|
||||
writeSaveString(writer, JSON.stringify(extra || []));
|
||||
} else if (typeId === 21) { // ball
|
||||
} else if (typeId === 21 || typeId === BALLOON_TYPE_ID) { // ball/balloon
|
||||
writer.s(extra[0] || 0); writer.s(extra[1] || 0);
|
||||
} else if (typeId === 23) { // ant_nest
|
||||
writer.s(extra[0] || 0); writer.s(extra[1] || 0);
|
||||
|
|
@ -696,7 +697,7 @@
|
|||
return [];
|
||||
}
|
||||
}
|
||||
if (typeId === 21) return [reader.s(), reader.s()];
|
||||
if (typeId === 21 || typeId === BALLOON_TYPE_ID) return [reader.s(), reader.s()];
|
||||
if (typeId === 23) return [reader.s(), reader.s()];
|
||||
if (typeId === 24) return [reader.s()];
|
||||
if (typeId === FIRECRACKER_TYPE_ID || typeId === FLAME_FIRECRACKER_TYPE_ID || typeId === FIRE_TYPE_ID) return [reader.s()];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue