From d028d7c3e9c84d177b7b10fa0d8f77d11bcea20f Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 2 Jun 2025 07:45:26 +1100 Subject: add basic support for getting biome ids in chunks --- azalea-client/src/test_simulation.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/test_simulation.rs b/azalea-client/src/test_simulation.rs index c9f28e01..3f7cd8b2 100644 --- a/azalea-client/src/test_simulation.rs +++ b/azalea-client/src/test_simulation.rs @@ -1,6 +1,7 @@ use std::{fmt::Debug, sync::Arc}; use azalea_auth::game_profile::GameProfile; +use azalea_block::BlockState; use azalea_buf::AzaleaWrite; use azalea_core::{ delta::PositionDelta8, @@ -20,11 +21,8 @@ use azalea_protocol::packets::{ c_light_update::ClientboundLightUpdatePacketData, }, }; -use azalea_registry::{DimensionType, EntityKind}; -use azalea_world::{ - Chunk, Instance, MinecraftEntityId, Section, - palette::{PalettedContainer, PalettedContainerKind}, -}; +use azalea_registry::{Biome, DimensionType, EntityKind}; +use azalea_world::{Chunk, Instance, MinecraftEntityId, Section, palette::PalettedContainer}; use bevy_app::App; use bevy_ecs::{component::Mutable, prelude::*, schedule::ExecutorKind}; use parking_lot::RwLock; @@ -261,8 +259,8 @@ pub fn make_basic_empty_chunk( for _ in 0..section_count { sections.push(Section { block_count: 0, - states: PalettedContainer::new(PalettedContainerKind::BlockStates), - biomes: PalettedContainer::new(PalettedContainerKind::Biomes), + states: PalettedContainer::::new(), + biomes: PalettedContainer::::new(), }); } sections.azalea_write(&mut chunk_bytes).unwrap(); -- cgit v1.2.3