diff --git a/world/voxel_world.cpp b/world/voxel_world.cpp index 091b7b0..a2f877a 100644 --- a/world/voxel_world.cpp +++ b/world/voxel_world.cpp @@ -505,6 +505,9 @@ void VoxelWorld::set_chunks(const Vector &chunks) { continue; } + if (chunk->get_voxel_world() != NULL && chunk->get_voxel_world() != this) + continue; + add_chunk(chunk, chunk->get_position_x(), chunk->get_position_y(), chunk->get_position_z()); } }