Skip to content

Commit 7b08802

Browse files
committed
🐛 Fix rotation validation checking for incorrect MC version
1 parent 0f3ace4 commit 7b08802

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/systems/util.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function isCubeValid(cube: Cube): '1.21.6+' | 'valid' | 'invalid' {
102102
totalRotation === cube.rotation[1] ||
103103
totalRotation === cube.rotation[2]
104104

105-
if (isSingleAxisRotation && projectTargetVersionIsAtLeast('1.21.4')) return '1.21.6+'
105+
if (isSingleAxisRotation && projectTargetVersionIsAtLeast('1.21.6')) return '1.21.6+'
106106

107107
const isRotationInAllowedSteps =
108108
totalRotation === -45 ||
@@ -116,11 +116,6 @@ export function isCubeValid(cube: Cube): '1.21.6+' | 'valid' | 'invalid' {
116116
return 'invalid'
117117
}
118118

119-
export function getFunctionNamespace(version: string): 'function' | 'functions' {
120-
// If the target version is 1.21.0 or higher, use the 'function' namespace instead of 'functions'
121-
return compareVersions(version, '1.20.10000') ? 'function' : 'functions'
122-
}
123-
124119
export async function sleepForAnimationFrame() {
125120
return new Promise(resolve => requestAnimationFrame(resolve))
126121
}

test-packs/1.20.4/blueprints/armor_stand_1.20.4.ajblueprint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@
20272027
"override": false,
20282028
"length": 1,
20292029
"snapping": 20,
2030-
"selected": true,
2030+
"selected": false,
20312031
"saved": true,
20322032
"path": "",
20332033
"anim_time_update": "",

0 commit comments

Comments
 (0)