Skip to content

Commit 9912d7c

Browse files
committed
🛠️ Fix #341
1 parent e3129d1 commit 9912d7c

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

src/systems/datapackCompiler/1.20.4/animation.mcb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ dir <%export_namespace%> {
125125
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
126126
}
127127
<%animationStorage.join('\n')%>
128-
} ELSE {
129-
<%%
130-
animations.forEach(animation => {
131-
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132-
})
133-
%%>
134128
}
129+
<%%
130+
animations.forEach(animation => {
131+
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132+
})
133+
%%>
135134
}
136135

137136
dir root {

src/systems/datapackCompiler/1.20.5/animation.mcb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ dir <%export_namespace%> {
125125
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
126126
}
127127
<%animationStorage.join('\n')%>
128-
} ELSE {
129-
<%%
130-
animations.forEach(animation => {
131-
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132-
})
133-
%%>
134128
}
129+
<%%
130+
animations.forEach(animation => {
131+
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132+
})
133+
%%>
135134
}
136135

137136
dir root {

src/systems/datapackCompiler/1.21.2/animation.mcb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ dir <%export_namespace%> {
125125
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
126126
}
127127
<%animationStorage.join('\n')%>
128-
} ELSE {
129-
<%%
130-
animations.forEach(animation => {
131-
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132-
})
133-
%%>
134128
}
129+
<%%
130+
animations.forEach(animation => {
131+
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132+
})
133+
%%>
135134
}
136135

137136
dir root {

src/systems/datapackCompiler/1.21.4/animation.mcb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ dir <%export_namespace%> {
125125
data remove storage aj.<%export_namespace%>:animations <%animation.storageSafeName%>
126126
}
127127
<%animationStorage.join('\n')%>
128-
} ELSE {
129-
<%%
130-
animations.forEach(animation => {
131-
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132-
})
133-
%%>
134128
}
129+
<%%
130+
animations.forEach(animation => {
131+
emit(`scoreboard objectives add ${OBJECTIVES.FRAME(animation.safe_name)} dummy`)
132+
})
133+
%%>
135134
}
136135

137136
dir root {

0 commit comments

Comments
 (0)