From 0c1ac31224ee18cbdff73836c5f751c4205f4caf Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 6 May 2020 21:50:15 +0200 Subject: [PATCH] Spawn the correct mob. --- game/modules/planets/test_planet/biomes/simple_biome.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/planets/test_planet/biomes/simple_biome.gd b/game/modules/planets/test_planet/biomes/simple_biome.gd index b17c26b6..34a5e30f 100644 --- a/game/modules/planets/test_planet/biomes/simple_biome.gd +++ b/game/modules/planets/test_planet/biomes/simple_biome.gd @@ -96,7 +96,7 @@ func generate_terrarin(chunk : VoxelChunk, spawn_mobs: bool) -> void: # chunk.build() if not Engine.editor_hint and chunk.position_y == 0 and spawn_mobs: - ESS.entity_spawner.spawn_mob(1, randi() % 3, Vector3(chunk.position_x * chunk.size_x * chunk.voxel_scale + chunk.size_x / 2,\ + ESS.entity_spawner.spawn_mob(0, randi() % 3, Vector3(chunk.position_x * chunk.size_x * chunk.voxel_scale + chunk.size_x / 2,\ (chunk.position_y + 1) * chunk.size_y * chunk.voxel_scale, \ chunk.position_z * chunk.size_z * chunk.voxel_scale + chunk.size_z / 2))