Skip to content

Commit 2c19659

Browse files
committed
✨ Sync static.mcb with animation.mcb
1 parent d2f1eab commit 2c19659

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/systems/datapackCompiler/1.20.4/animation.mcb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,7 @@ dir root {
130130

131131
IF (!auto_update_rig_orientation) {
132132
function move {
133-
IF (debug_mode) {
134-
# Assert that the function is being run as the root entity.
135-
execute unless entity @s[tag=<%TAGS.PROJECT_ROOT(export_namespace)%>] run \
136-
return run tellraw @a <%TELLRAW.FUNCTION_NOT_EXECUTED_AS_ROOT_ERROR(arguments[1].functions.at(-1))%>
137-
}
133+
debug assert executed_as_root_entity
138134

139135
tp @s ~ ~ ~ ~ ~
140136

src/systems/datapackCompiler/1.20.4/static.mcb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ dir root {
8989

9090
IF (!auto_update_rig_orientation) {
9191
function move {
92-
IF (debug_mode) {
93-
# Assert that the function is being run as the root entity.
94-
execute unless entity @s[tag=<%TAGS.PROJECT_ROOT(export_namespace)%>] run \
95-
return run tellraw @a <%TELLRAW.FUNCTION_NOT_EXECUTED_AS_ROOT_ERROR(arguments[1].functions.at(-1))%>
96-
}
92+
debug assert executed_as_root_entity
9793

9894
tp @s ~ ~ ~ ~ ~
9995

@@ -106,9 +102,12 @@ IF (!auto_update_rig_orientation) {
106102

107103
execute at @s on passengers run tp @s ~ ~ ~ ~ ~
108104
}
105+
} ELSE {
106+
function move {
107+
tellraw @a <%TELLRAW.AUTO_UPDATE_RIG_ORIENTATION_MOVE_WARNING()%>
108+
}
109109
}
110110

111-
112111
function summon {
113112
#Args: {args:{variant: string}}
114113

0 commit comments

Comments
 (0)