Skip to content

Commit

Permalink
revert: remove enqueueing the monster spawn (#197)
Browse files Browse the repository at this point in the history
Signed-off-by: Utku Korkmaz <uutkukorkmaz@gmail.com>
  • Loading branch information
uutkukorkmaz authored Oct 15, 2024
1 parent cd510fd commit efe142b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Executables/Game/World/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,7 @@ private MonsterEntity SpawnMonster(uint id, SpawnPoint spawnPoint)
monster.Rotation = RandomNumberGenerator.GetInt32(0, 360);
}

EventSystem.EnqueueEvent(() =>
{
_world.SpawnEntity(monster);
return 0;
}, spawnPoint.RespawnTime * 1000);

_world.SpawnEntity(monster);
return monster;
}

Expand Down

0 comments on commit efe142b

Please sign in to comment.