mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
refactor: move Weather instance to WorldInfo
This commit is contained in:
parent
0ea842580c
commit
9c4db8fa10
9 changed files with 116 additions and 61 deletions
|
|
@ -69,6 +69,8 @@ LevelController::LevelController(
|
|||
}
|
||||
|
||||
void LevelController::update(float delta, bool pause) {
|
||||
level->getWorld()->getInfo().weather.update(delta);
|
||||
|
||||
for (const auto& [_, player] : *level->players) {
|
||||
if (player->isSuspended()) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue