diff --git a/src/main/resources/assets/carpet/scripts/draw_beta.sc b/src/main/resources/assets/carpet/scripts/draw_beta.sc
index 32da53c5..c29aa359 100644
--- a/src/main/resources/assets/carpet/scripts/draw_beta.sc
+++ b/src/main/resources/assets/carpet/scripts/draw_beta.sc
@@ -18,10 +18,6 @@ __config() -> {
'cuboid
replace '->_(c,r,h,o,b,ho,rp)->draw('draw_prism', [c,r,h,o,b,ho,rp,true]),
'cylinder '->_(c,r,h,o,b,ho)->draw('draw_prism',[c,r,h,p,o,b,ho,null, false]),
'cylinder replace '->_(c,r,h,o,b,ho,rp)->draw('draw_prism', [c,r,h,o,b,ho,rp,false]),
- if(system_info('server_dev_environment')||system_info('world_carpet_rules'):'superSecretSetting',
- 'debug '->_(bool)->global_debug=bool,
- ''->_()->''
- )
},
'arguments'->{
'center'->{'type'->'pos', 'loaded'->'true'},
@@ -36,7 +32,6 @@ __config() -> {
'scope'->'global'
};
-global_debug=false;
//"Boilerplate" code
@@ -64,7 +59,6 @@ affected(player) -> (
affected
);
-length_sq(vec) -> reduce(vec, _a + _*_, 0);
//Drawing commands
diff --git a/src/main/resources/assets/carpet/scripts/shapes.scl b/src/main/resources/assets/carpet/scripts/shapes.scl
index c33ea53e..170f2e43 100644
--- a/src/main/resources/assets/carpet/scripts/shapes.scl
+++ b/src/main/resources/assets/carpet/scripts/shapes.scl
@@ -1,6 +1,5 @@
draw_sphere(args)->(
- if(global_debug, start_time=unix_time());
[centre, radius, block, replacement, hollow] = args;
@@ -21,14 +20,10 @@ draw_sphere(args)->(
)
);
- if(global_debug,
- print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
- );
return(global_positions)
);
draw_diamond(args)->(
- if(global_debug, start_time=unix_time());
[pos, radius, block, replacement] = args;
@@ -44,14 +39,10 @@ draw_diamond(args)->(
)
);
- if(global_debug,
- print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
- );
return(global_positions)
);
draw_filled_diamond(args)->(
- if(global_debug, start_time=unix_time());
[pos, radius, block, replacement] = args;
@@ -59,14 +50,10 @@ draw_filled_diamond(args)->(
set_block(_x,_y,_z,block,replacement)
);
- if(global_debug,
- print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
- );
return(global_positions)
);
draw_pyramid(args)->(
- if(global_debug, start_time=unix_time());
[pos, radius, height, pointing, orientation, block, fill_type, replacement, is_square] = args;
@@ -77,14 +64,10 @@ draw_pyramid(args)->(
fill_flat(pos, _, r, is_square, orientation, block, if((pointup&&_==0)||(!pointup && _==height-1),false,hollow),replacement)//Always close bottom off
);
- if(global_debug,
- print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
- );
return(global_positions)
);
draw_prism(args)->(
- if(global_debug, start_time=unix_time());
[pos, rad, height, orientation, block, fill_type, replacement, is_square]=args;
@@ -95,9 +78,6 @@ draw_prism(args)->(
fill_flat(pos, _, radius, is_square, orientation, block, if(_==0 || _==height-1,false,hollow), replacement)//Always close ends off
);
- if(global_debug,
- print(player(),format('gi Time taken: '+(unix_time()-start_time)+'ms'))
- );
return(global_positions)
);