Skip to content

Commit 84c4bc7

Browse files
committed
🐛 Fix locators failing to tick, and display entities being left behind
1 parent 5d6368f commit 84c4bc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/systems/datapackCompiler/1.21.4/animation.mcb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dir root {
6666
}
6767
execute on passengers run { with entity @s data.uuids_by_name
6868
REPEAT (Object.values(rig.nodes).filter(node => BONE_TYPES.includes(node.type))) as node {
69-
$rotate $(<%node.storage_name%>) ~ ~
69+
$tp $(<%node.storage_name%>) ~ ~ ~ ~ ~
7070
# Precise Rotation Workaround. Fixes MC-272913.
7171
# Thanks @Triton365! (https://discord.com/channels/154777837382008833/157097006500806656/1402253905408163842)
7272
$execute \
@@ -170,7 +170,7 @@ IF (!auto_update_rig_orientation) {
170170
function ./root/on_tick/transform_floating_entities
171171
}
172172
REPEAT (Object.values(rig.nodes).filter(node => BONE_TYPES.includes(node.type))) as node {
173-
$rotate $(<%node.storage_name%>) ~ ~
173+
$tp $(<%node.storage_name%>) ~ ~ ~ ~ ~
174174
# Precise Rotation Workaround. Fixes MC-272913.
175175
# Thanks @Triton365! (https://discord.com/channels/154777837382008833/157097006500806656/1402253905408163842)
176176
$execute \
@@ -505,7 +505,7 @@ dir animations {
505505
if (Object.keys(to_merge.locators).length > 0 || Object.keys(to_merge.cameras).length > 0) {
506506
frameFunc += `\ndata modify entity @s data merge value ${JSON.stringify(to_merge)}`
507507
if (!auto_update_rig_orientation) {
508-
frameFunc += `\nfunction ./on_tick/transform_floating_entities`
508+
frameFunc += `\nfunction animated_java:${export_namespace}/root/on_tick/transform_floating_entities`
509509
}
510510
hasFunction = true
511511
}

0 commit comments

Comments
 (0)