Minor refactor

This commit is contained in:
MihailRis
2024-01-03 22:51:48 +03:00
parent 2ad115a2a8
commit e7e2c16ee6
3 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -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;
}
};