Removed unnecessary check.

This commit is contained in:
Relintai 2025-04-18 20:21:09 +02:00
parent 64696b534b
commit 61a43daa45

View File

@ -1723,9 +1723,7 @@ void TerrainWorld::_notification(int p_what) {
Ref<TerrainChunk> chunk = _chunks_vector[i];
if (chunk.is_valid()) {
if (chunk->get_voxel_world() == this) {
chunk->exit_tree();
}
chunk->exit_tree();
}
}
break;