fix: correct neighbor block indexing and add time update support

This commit is contained in:
2026-06-25 21:37:19 +08:00
parent 47552a1887
commit db10d30dc2
9 changed files with 80 additions and 60 deletions

View File

@@ -80,7 +80,7 @@ DesertParams& desert_params();
MountainParams& mountain_params();
RiverParams& river_params();
inline BiomeType get_biome(int id) {
inline BiomeType get_biome_from_id(int id) {
using enum BiomeType;
auto to = std::to_underlying<BiomeType>;
if (id == to(PLAIN)) {

View File

@@ -16,7 +16,7 @@ class ClientPlayer {
public:
ClientPlayer(ClientWorld& world);
~ClientPlayer();
AABB get_aabb() const;
AABB get_aabb(const glm::vec3& pos) const;
const glm::vec3& get_front() const;
const Gait& get_gait() const;
const std::optional<LookBlock>& get_look_block_pos() const;