diff options
author | madmaxoft <github@xoft.cz> | 2014-01-17 11:11:17 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-17 11:11:17 +0100 |
commit | aec5200893e09f90cc43b61088b30364800b51c6 (patch) | |
tree | a5f60ae183abbd1239f5e6bef84c7f2682de9f60 /src/Items | |
parent | Merge remote-tracking branch 'origin/customnames' (diff) | |
download | cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.gz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.bz2 cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.lz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.xz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.zst cuberite-aec5200893e09f90cc43b61088b30364800b51c6.zip |
Diffstat (limited to 'src/Items')
-rw-r--r-- | src/Items/ItemBed.h | 2 | ||||
-rw-r--r-- | src/Items/ItemComparator.h | 2 | ||||
-rw-r--r-- | src/Items/ItemRedstoneRepeater.h | 2 | ||||
-rw-r--r-- | src/Items/ItemSign.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/Items/ItemBed.h b/src/Items/ItemBed.h index 18eec9421..9b7c8bff8 100644 --- a/src/Items/ItemBed.h +++ b/src/Items/ItemBed.h @@ -37,7 +37,7 @@ public: return false; } - a_BlockMeta = cBlockBedHandler::RotationToMetaData(a_Player->GetRot().x); + a_BlockMeta = cBlockBedHandler::RotationToMetaData(a_Player->GetYaw()); // Check if there is empty space for the foot section: Vector3i Direction = cBlockBedHandler::MetaDataToDirection(a_BlockMeta); diff --git a/src/Items/ItemComparator.h b/src/Items/ItemComparator.h index 57a1eb9ac..3a5d1d200 100644 --- a/src/Items/ItemComparator.h +++ b/src/Items/ItemComparator.h @@ -30,7 +30,7 @@ public: ) override { a_BlockType = E_BLOCK_INACTIVE_COMPARATOR; - a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetRot().x); + a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetYaw()); return true; } } ; diff --git a/src/Items/ItemRedstoneRepeater.h b/src/Items/ItemRedstoneRepeater.h index b927f14d7..e71c8e672 100644 --- a/src/Items/ItemRedstoneRepeater.h +++ b/src/Items/ItemRedstoneRepeater.h @@ -30,7 +30,7 @@ public: ) override { a_BlockType = E_BLOCK_REDSTONE_REPEATER_OFF; - a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetRot().x); + a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetYaw()); return true; } } ; diff --git a/src/Items/ItemSign.h b/src/Items/ItemSign.h index 058fe2c35..8c134ab83 100644 --- a/src/Items/ItemSign.h +++ b/src/Items/ItemSign.h @@ -34,7 +34,7 @@ public: { if (a_BlockFace == BLOCK_FACE_TOP) { - a_BlockMeta = cBlockSignHandler::RotationToMetaData(a_Player->GetRot().x); + a_BlockMeta = cBlockSignHandler::RotationToMetaData(a_Player->GetYaw()); a_BlockType = E_BLOCK_SIGN_POST; } else |