From eecd786ccbec9fe32d31cd658893d9e8f51edaa8 Mon Sep 17 00:00:00 2001 From: Elias Stepanik <40958815+eliasstepanik@users.noreply.github.com> Date: Sat, 14 Jun 2025 01:09:31 +0200 Subject: [PATCH] Fix voxel creation calls --- client/src/plugins/input/systems/voxels.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/plugins/input/systems/voxels.rs b/client/src/plugins/input/systems/voxels.rs index a163143..a45de1f 100644 --- a/client/src/plugins/input/systems/voxels.rs +++ b/client/src/plugins/input/systems/voxels.rs @@ -33,7 +33,10 @@ pub fn voxel_system( if keyboard_input.just_pressed(KeyCode::KeyQ) && window.cursor_options.visible == false{ for mut octree in octree_query.iter_mut() { - octree.insert(transform.translation, Voxel::new(Color::srgb(1.0, 0.0, 0.0))); + octree.insert( + transform.translation, + Voxel::new(Color::srgb(1.0, 0.0, 0.0), [0; 6]), + ); } } if keyboard_input.just_pressed(KeyCode::F4){ @@ -111,7 +114,7 @@ pub fn voxel_system( // Insert the new voxel octree.insert( offset_position, - Voxel::new(Color::srgb(1.0, 0.0, 0.0)), + Voxel::new(Color::srgb(1.0, 0.0, 0.0), [0; 6]), ); } }