summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-17 10:44:23 +0100
committermadmaxoft <github@xoft.cz>2014-01-17 10:44:23 +0100
commited1d336614173daaecf0f5c43e8a174970cef631 (patch)
tree3d3526ac7a8bd61a6eaf03293d4197a71dd9200f /src/Items
parentProtocol 1.7: More output on unknown packets / protocol states. (diff)
parentChanged newline character because of issues (diff)
downloadcuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.gz
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.bz2
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.lz
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.xz
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.zst
cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemBed.h2
-rw-r--r--src/Items/ItemComparator.h2
-rw-r--r--src/Items/ItemRedstoneRepeater.h2
-rw-r--r--src/Items/ItemSign.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/Items/ItemBed.h b/src/Items/ItemBed.h
index ab4182eea..18eec9421 100644
--- a/src/Items/ItemBed.h
+++ b/src/Items/ItemBed.h
@@ -37,7 +37,7 @@ public:
return false;
}
- a_BlockMeta = cBlockBedHandler::RotationToMetaData(a_Player->GetRotation());
+ a_BlockMeta = cBlockBedHandler::RotationToMetaData(a_Player->GetRot().x);
// 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 3fbb7603d..57a1eb9ac 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->GetRotation());
+ a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetRot().x);
return true;
}
} ;
diff --git a/src/Items/ItemRedstoneRepeater.h b/src/Items/ItemRedstoneRepeater.h
index f69f24eb8..b927f14d7 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->GetRotation());
+ a_BlockMeta = cBlockRedstoneRepeaterHandler::RepeaterRotationToMetaData(a_Player->GetRot().x);
return true;
}
} ;
diff --git a/src/Items/ItemSign.h b/src/Items/ItemSign.h
index 5ccd79e29..058fe2c35 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->GetRotation());
+ a_BlockMeta = cBlockSignHandler::RotationToMetaData(a_Player->GetRot().x);
a_BlockType = E_BLOCK_SIGN_POST;
}
else