Fix compile without Voxelman.

This commit is contained in:
Relintai 2020-08-01 11:37:38 +02:00
parent bc2ee7171a
commit 2b17341ac2
4 changed files with 3 additions and 12 deletions

View File

@ -411,9 +411,6 @@ void Biome::_setup_library(Ref<VoxelmanLibrary> library) {
}
#else
void Biome::setup_library(Ref<Resource> library) {
if (!_data.is_valid())
return;
if (has_method("_setup_library")) {
call("_setup_library", library);
}

View File

@ -639,10 +639,8 @@ void Dungeon::generate_structure(Ref<VoxelStructure> structure, bool spawn_mobs)
}
}
#else
void Dungeon::setup_library(Ref<Resource> library) {
if (!_data.is_valid())
return;
void Dungeon::setup_library(Ref<Resource> library) {
if (has_method("_setup_library")) {
call("_setup_library", library);
}

View File

@ -447,9 +447,6 @@ void DungeonRoom::generate_room(Ref<VoxelStructure> structure, bool spawn_mobs)
#else
void DungeonRoom::setup_library(Ref<Resource> library) {
if (!_data.is_valid())
return;
if (has_method("_setup_library")) {
call("_setup_library", library);
}

View File

@ -272,6 +272,7 @@ Ref<Planet> Planet::_instance(const int seed, Ref<Planet> inst) {
inst->set_temperature_noise_params(_temperature_noise_params->duplicate());
#endif
#ifdef VOXELMAN_PRESENT
for (int i = 0; i < _environment_datas.size(); ++i) {
Ref<EnvironmentData> d = _environment_datas[i];
@ -289,6 +290,7 @@ Ref<Planet> Planet::_instance(const int seed, Ref<Planet> inst) {
inst->add_voxel_surface(d);
}
#endif
return inst;
}
@ -344,9 +346,6 @@ void Planet::generate_chunk(Ref<VoxelChunk> chunk, bool spawn_mobs) {
#else
void Planet::setup_library(Ref<Resource> library) {
if (!_data.is_valid())
return;
if (has_method("_setup_library")) {
call("_setup_library", library);
}