Skip to content

Commit 10cf4d7

Browse files
committed
🐛 Fix global/on_tick function being placed at start of minecraft:tick function tag
1 parent 7ffee59 commit 10cf4d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/minecraftUtil.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ export class DataPackTag {
211211
this.values.sort((a, b) => {
212212
const idA = DataPackTag.getEntryId(a)
213213
const idB = DataPackTag.getEntryId(b)
214+
if (idA === 'animated_java:global/on_tick') return 1
215+
if (idB === 'animated_java:global/on_tick') return -1
214216
return idA.localeCompare(idB, 'en')
215217
})
216218

0 commit comments

Comments
 (0)