mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
fix: correct neighbor block indexing and add time update support
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user