mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
Minor refactor
This commit is contained in:
parent
2ad115a2a8
commit
e7e2c16ee6
3 changed files with 14 additions and 15 deletions
|
|
@ -17,13 +17,13 @@ const int BLOCK_VARIANT_MASK = 0xF0;
|
|||
|
||||
struct voxel {
|
||||
blockid_t id;
|
||||
uint8_t states;
|
||||
blockstate_t states;
|
||||
|
||||
inline uint8_t rotation() const {
|
||||
return states & BLOCK_ROT_MASK;
|
||||
}
|
||||
|
||||
inline int8_t variant() const {
|
||||
inline uint8_t variant() const {
|
||||
return (states & BLOCK_VARIANT_MASK) >> 4;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue