diff options
Diffstat (limited to 'src/Blocks/BlockBed.h')
-rw-r--r-- | src/Blocks/BlockBed.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/Blocks/BlockBed.h b/src/Blocks/BlockBed.h index bedc383e1..3d35b2bf5 100644 --- a/src/Blocks/BlockBed.h +++ b/src/Blocks/BlockBed.h @@ -16,9 +16,9 @@ class cWorldInterface; class cBlockBedHandler : - public cMetaRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01, true> + public cYawRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01> { - using super = cMetaRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01, true>; + using super = cYawRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01>; public: @@ -41,24 +41,6 @@ public: - // Bed specific helper functions - static NIBBLETYPE RotationToMetaData(double a_Rotation) - { - a_Rotation += 180 + (180 / 4); // So its not aligned with axis - if (a_Rotation > 360) - { - a_Rotation -= 360; - } - - a_Rotation = (a_Rotation / 360) * 4; - - return (static_cast<NIBBLETYPE>(a_Rotation + 2)) % 4; - } - - - - - static Vector3i MetaDataToDirection(NIBBLETYPE a_MetaData) { switch (a_MetaData) |