We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696e24e commit 4361ebcCopy full SHA for 4361ebc
1 file changed
src/main.rs
@@ -591,7 +591,8 @@ async fn main() {
591
let snapped_cam_y = cam_pos_y as i32;
592
let snapped_x = ((mouse_x + (snapped_cam_x * 5)) / grid_size as i32) * grid_size as i32;
593
let screen_height_range = (screen_height() - 600.0) * (40.0 / (1005.0 - 600.0));
594
- let snapped_y = (((mouse_y - (snapped_cam_y * 5)) - (screen_height() - (600.0 + screen_height_range)) as i32) / grid_size as i32) * grid_size as i32;
+ let snapped_y_bugged = (((mouse_y - (snapped_cam_y * 5)) - (screen_height() - (600.0 + screen_height_range)) as i32) / grid_size as i32) * grid_size as i32;
595
+ let snapped_y: i32 = snapped_y_bugged - if snapped_y_bugged <= -40 { 40 } else { 0 };
596
597
// This runs the loop function of all the loaded mods
598
for lua_mod in mods.clone() {
0 commit comments