Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

No visible roof on spawn #306

Closed snipercup closed 2 months ago

snipercup commented 2 months ago

Requires #305 Fixes #292

Adds a signal that is emitted when the initial chunks are done loading. Well, not exactly. It's emitted when all initial chunks are initialized and some are done loading. This will work for the purposes of this pr.

When the signal is emitted, the visibility of blocks above the player will update, even if the player is not moving. This also paves the way for the loading screen to hide itself when it's implemented.

I tested it by loading a game where the player is on the first floor and under a roof. It takes a moment, but then the roof is hidden.