Skip to content

Commit 55d0769

Browse files
committed
Fix Export <export_namespace>/on_load.mcf is corrupt with “Use Storage for Animation” enabled
Fix #350
1 parent ddcea5a commit 55d0769

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/systems/datapackCompiler/1.20.4/animation.mcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ dir <%export_namespace%> {
122122
function on_load {
123123
IF (use_storage_for_animation) {
124124
REPEAT (animations) as animation {
125-
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
125+
data remove storage aj.<%export_namespace%>:animations <%animation.safe_name%>
126126
}
127127
<%animationStorage.join('\n')%>
128128
}

src/systems/datapackCompiler/1.20.5/animation.mcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ dir <%export_namespace%> {
122122
function on_load {
123123
IF (use_storage_for_animation) {
124124
REPEAT (animations) as animation {
125-
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
125+
data remove storage aj.<%export_namespace%>:animations <%animation.safe_name%>
126126
}
127127
<%animationStorage.join('\n')%>
128128
}

src/systems/datapackCompiler/1.21.2/animation.mcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ dir <%export_namespace%> {
122122
function on_load {
123123
IF (use_storage_for_animation) {
124124
REPEAT (animations) as animation {
125-
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
125+
data remove storage aj.<%export_namespace%>:animations <%animation.safe_name%>
126126
}
127127
<%animationStorage.join('\n')%>
128128
}

src/systems/datapackCompiler/1.21.4/animation.mcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ dir <%export_namespace%> {
122122
function on_load {
123123
IF (use_storage_for_animation) {
124124
REPEAT (animations) as animation {
125-
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
125+
data remove storage aj.<%export_namespace%>:animations <%animation.safe_name%>
126126
}
127127
<%animationStorage.join('\n')%>
128128
}

0 commit comments

Comments
 (0)