File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
src/systems/datapackCompiler/1.20.4 Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,7 @@ dir root {
130130
131131IF (!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
Original file line number Diff line number Diff line change @@ -89,11 +89,7 @@ dir root {
8989
9090IF (!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-
112111function summon {
113112 #Args: {args:{variant: string}}
114113
You can’t perform that action at this time.
0 commit comments