diff --git a/main/biome.cpp b/main/biome.cpp index 3340780..5b044c1 100644 --- a/main/biome.cpp +++ b/main/biome.cpp @@ -411,9 +411,6 @@ void Biome::_setup_library(Ref library) { } #else void Biome::setup_library(Ref library) { - if (!_data.is_valid()) - return; - if (has_method("_setup_library")) { call("_setup_library", library); } diff --git a/main/dungeon.cpp b/main/dungeon.cpp index 80928ca..506909f 100644 --- a/main/dungeon.cpp +++ b/main/dungeon.cpp @@ -639,10 +639,8 @@ void Dungeon::generate_structure(Ref structure, bool spawn_mobs) } } #else -void Dungeon::setup_library(Ref library) { - if (!_data.is_valid()) - return; +void Dungeon::setup_library(Ref library) { if (has_method("_setup_library")) { call("_setup_library", library); } diff --git a/main/dungeon_room.cpp b/main/dungeon_room.cpp index e8094a5..6656767 100644 --- a/main/dungeon_room.cpp +++ b/main/dungeon_room.cpp @@ -447,9 +447,6 @@ void DungeonRoom::generate_room(Ref structure, bool spawn_mobs) #else void DungeonRoom::setup_library(Ref library) { - if (!_data.is_valid()) - return; - if (has_method("_setup_library")) { call("_setup_library", library); } diff --git a/main/planet.cpp b/main/planet.cpp index 055aeca..04c7003 100644 --- a/main/planet.cpp +++ b/main/planet.cpp @@ -272,6 +272,7 @@ Ref Planet::_instance(const int seed, Ref inst) { inst->set_temperature_noise_params(_temperature_noise_params->duplicate()); #endif +#ifdef VOXELMAN_PRESENT for (int i = 0; i < _environment_datas.size(); ++i) { Ref d = _environment_datas[i]; @@ -289,6 +290,7 @@ Ref Planet::_instance(const int seed, Ref inst) { inst->add_voxel_surface(d); } +#endif return inst; } @@ -344,9 +346,6 @@ void Planet::generate_chunk(Ref chunk, bool spawn_mobs) { #else void Planet::setup_library(Ref library) { - if (!_data.is_valid()) - return; - if (has_method("_setup_library")) { call("_setup_library", library); }