mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
chunk model refresh fix
This commit is contained in:
parent
8341485aef
commit
853ee0fc6f
2 changed files with 7 additions and 2 deletions
|
|
@ -22,6 +22,10 @@ struct voxel {
|
|||
inline uint8_t rotation() const {
|
||||
return states & BLOCK_ROT_MASK;
|
||||
}
|
||||
|
||||
inline void setRotation(uint8_t rotation) {
|
||||
states = (states & (~BLOCK_ROT_MASK)) | rotation & BLOCK_ROT_MASK;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* VOXELS_VOXEL_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue