Skip to content

Commit 766a3b1

Browse files
committed
🧼 Remove Unused Code
1 parent e0f4338 commit 766a3b1

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/systems/datapackCompiler.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -482,42 +482,6 @@ async function createAnimationStorage(animations: IRenderedAnimation[]) {
482482
return dataCommands
483483
}
484484

485-
// function createAnimationStorage(animations: IRenderedAnimation[]) {
486-
// const storage: string[] = []
487-
488-
// for (const animation of animations) {
489-
// const frames = new NbtList([
490-
// new NbtCompound(), // This compound is just to make the list 1-indexed
491-
// ])
492-
// const animStorage = new NbtCompound().set('frames', frames)
493-
// for (const frame of animation.frames) {
494-
// const frameStorage = new NbtCompound()
495-
// frames.add(frameStorage)
496-
// for (const node of frame.nodes) {
497-
// if (!BONE_TYPES.includes(node.type)) continue
498-
// frameStorage.set(
499-
// node.type + '_' + node.name,
500-
// new NbtCompound()
501-
// .set('transformation', matrixToNbtFloatArray(node.matrix))
502-
// .set('start_interpolation', new NbtInt(0))
503-
// )
504-
// }
505-
// }
506-
507-
// const str = `data modify storage aj.${
508-
// Project!.animated_java.export_namespace
509-
// }:animations list.${animation.storageSafeName} set value ${animStorage.toString()}`
510-
// if (str.length > 2000000) {
511-
// // FIXME - Temporary patch. Split each animation's storage into multiple commands if it's too large.
512-
// throw new Error(
513-
// `The animation storage for '${animation.name}' is too large! The data command must be less than 2000000 characters long. (Currently ${str.length} characters).`
514-
// )
515-
// }
516-
// storage.push(str)
517-
// }
518-
// return storage
519-
// }
520-
521485
function createPassengerStorage(rig: IRenderedRig) {
522486
const bones = new NbtCompound()
523487
const locators = new NbtCompound()

0 commit comments

Comments
 (0)