Minor refactor

This commit is contained in:
MihailRis
2023-12-07 13:45:34 +03:00
parent 2055cff0be
commit 551b230b94
10 changed files with 30 additions and 22 deletions
+2 -2
View File
@@ -19,11 +19,11 @@ struct voxel {
blockid_t id;
uint8_t states;
inline uint8_t rotation() {
inline uint8_t rotation() const {
return states & BLOCK_ROT_MASK;
}
inline int8_t variant() {
inline int8_t variant() const {
return (states & BLOCK_VARIANT_MASK) >> 4;
}
};