removing _carpets stuff to detach from carpet rules
This commit is contained in:
1 parent
5287fed712
commit
a957af32d1
1 file changed
+3
-6
@@ -89,12 +89,9 @@ calculate(end)->(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
_carpets() -> system_info('world_carpet_rules'):'carpets'=='true';
|
|
||||||
|
|
||||||
|
|
||||||
on_player_places_block(player, item_tuple, hand, block) ->
|
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];
|
effective_pos = pos(block)+[0.5, 0, 0.5];
|
||||||
if(global_current_start==null||player~'sneaking',//wont complain for first carpet
|
if(global_current_start==null||player~'sneaking',//wont complain for first carpet
|
||||||
set_start(effective_pos)
|
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) ->
|
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',
|
if (player ~'sneaking',
|
||||||
global_current_mode = global_display_modes:(global_display_modes ~ global_current_mode + 1);
|
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));
|
display_title(player, 'actionbar', format('w Distance mode: ','e '+global_current_mode));
|
||||||
@@ -154,4 +151,4 @@ render()->(
|
|||||||
draw_shape(_);
|
draw_shape(_);
|
||||||
);
|
);
|
||||||
schedule(20,'render')
|
schedule(20,'render')
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user