From 8c1c5de0d22e355fccb74dbd4aa0915f4d5f91e3 Mon Sep 17 00:00:00 2001 From: gnembon Date: Mon, 7 Sep 2020 16:36:41 -0300 Subject: [PATCH] fixed apps messaging --- .../resources/assets/carpet/scripts/ai_tracker.sc | 12 ++++++------ src/main/resources/assets/carpet/scripts/camera.sc | 10 ++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/resources/assets/carpet/scripts/ai_tracker.sc b/src/main/resources/assets/carpet/scripts/ai_tracker.sc index f51a29dc..d266bb0a 100644 --- a/src/main/resources/assets/carpet/scripts/ai_tracker.sc +++ b/src/main/resources/assets/carpet/scripts/ai_tracker.sc @@ -54,7 +54,7 @@ health() -> __toggle('health', null); toggle_boxes() -> ( global_display_boxes = !global_display_boxes; - ''; + null; ); update_frequency(ticks) -> @@ -62,14 +62,14 @@ update_frequency(ticks) -> if (type(ticks) != 'number' || ticks <=0 || ticks > 100, exit('Ticks needs to be a positive number from 1 to 100')); global_interval = ticks; global_duration = ticks + 2; - ''; + null; ); transparency(alpha) -> ( if (type(alpha) != 'number' || alpha <=0 || alpha > 255, exit('Ticks needs to be a number from 0 to 255')); global_opacity = floor(alpha); - ''; + null; ); @@ -78,7 +78,7 @@ villager_hostile_detection(hostile) -> ( if (!has(global_hostile_to_villager:hostile), print(player(), 'Unknown hostile that affects villagers, possible options are: '+keys(global_hostile_to_villager)); - exit(''); + exit(null); ); __toggle('villager_hostile_detection', hostile); ); @@ -426,7 +426,7 @@ __toggle(feature, arg) -> ) ); __reset_interaction_types(); - ''; + null; ); global_interaction_types = {}; @@ -457,7 +457,7 @@ clear() -> ( global_active_functions = []; global_feature_switches = {}; - '' + null ); diff --git a/src/main/resources/assets/carpet/scripts/camera.sc b/src/main/resources/assets/carpet/scripts/camera.sc index 27cb4244..399f0003 100644 --- a/src/main/resources/assets/carpet/scripts/camera.sc +++ b/src/main/resources/assets/carpet/scripts/camera.sc @@ -55,7 +55,7 @@ __command() -> print(' After CPU spikes jump to where you should be'); print(''); - '' + null ); global_points = null; @@ -241,7 +241,7 @@ move() -> ); global_points:global_selected_point:0 = new_position; __update(); - ''; + null; ); // chenges duration of the current selected segment to X seconds @@ -473,7 +473,7 @@ show() -> global_markers = null; global_showing_path = false; )); - ''; + null; ); // hides path display @@ -482,8 +482,6 @@ hide() -> if (global_showing_path, global_showing_path = false; 'Stopped showing path'; - , - '' ); ); @@ -540,7 +538,7 @@ play() -> global_playing_path = false; if (showing_path, show()); )); - ''; + null; ); // moves player to a selected camera position