make fn pub

This commit is contained in:
Dominic 2024-07-06 18:46:40 +02:00
parent f3b8d44034
commit 3d5b5d37b6
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D

View file

@ -287,7 +287,7 @@ impl Overworld {
chunk.get_tile(local_chunk_coords)
}
fn get_or_generate_tile(&mut self, world_coords: IVec2) -> &Tile {
pub fn get_or_generate_tile(&mut self, world_coords: IVec2) -> &Tile {
let (chunk_coords, local_chunk_coords) =
world_to_chunk_and_local_coords(world_coords);