diff --git a/src/interface/voxel.h b/src/interface/voxel.h index e1d2d26..b3a29ed 100644 --- a/src/interface/voxel.h +++ b/src/interface/voxel.h @@ -91,6 +91,9 @@ namespace interface { uint32_t data; + VoxelInstance(){} + VoxelInstance(VoxelTypeId id): data(id){} + VoxelTypeId getId(){return data & 0x001fffff; } uint8_t getMSB(){return (data>>24) & 0xff; } };