From a957af32d16b4d62ae6d1f0257b9b20889b41ebf Mon Sep 17 00:00:00 2001 From: Ghoulboy Date: Tue, 2 Mar 2021 18:32:04 +0100 Subject: [PATCH] removing _carpets stuff to detach from carpet rules --- .../resources/assets/carpet/scripts/distance_beta.sc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/resources/assets/carpet/scripts/distance_beta.sc b/src/main/resources/assets/carpet/scripts/distance_beta.sc index 2c26d477..71a3a187 100644 --- a/src/main/resources/assets/carpet/scripts/distance_beta.sc +++ b/src/main/resources/assets/carpet/scripts/distance_beta.sc @@ -89,12 +89,9 @@ calculate(end)->( ) ); -_carpets() -> system_info('world_carpet_rules'):'carpets'=='true'; - - on_player_places_block(player, item_tuple, hand, block) -> ( - if(block==global_assist_block && _carpets(), + if(block==global_assist_block, effective_pos = pos(block)+[0.5, 0, 0.5]; if(global_current_start==null||player~'sneaking',//wont complain for first carpet set_start(effective_pos) @@ -106,7 +103,7 @@ on_player_places_block(player, item_tuple, hand, block) -> on_player_uses_item(player, item_tuple, hand) -> ( - if (item_tuple:0 == global_assist_block && hand == 'mainhand' && _carpets(), + if (item_tuple:0 == global_assist_block && hand == 'mainhand', if (player ~'sneaking', global_current_mode = global_display_modes:(global_display_modes ~ global_current_mode + 1); display_title(player, 'actionbar', format('w Distance mode: ','e '+global_current_mode)); @@ -154,4 +151,4 @@ render()->( draw_shape(_); ); schedule(20,'render') -); \ No newline at end of file +);