summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 12:44:09 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 12:44:09 +0100
commitd5ee899d0e3039ace71077b5fe3d7e4a5c3601ad (patch)
tree1d4573cb8da9dfd9a80ffc1b00cc0f4fbbd62f84 /src
parentImplemented item frames, a part of #689 (diff)
downloadcuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar.gz
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar.bz2
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar.lz
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar.xz
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.tar.zst
cuberite-d5ee899d0e3039ace71077b5fe3d7e4a5c3601ad.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ItemFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/ItemFrame.cpp b/src/Entities/ItemFrame.cpp
index e4e50bd8d..65b0edb25 100644
--- a/src/Entities/ItemFrame.cpp
+++ b/src/Entities/ItemFrame.cpp
@@ -48,7 +48,9 @@ void cItemFrame::OnRightClicked(cPlayer & a_Player)
// Item not empty, rotate, clipping values to zero to three inclusive
m_Rotation++;
if (m_Rotation >= 4)
+ {
m_Rotation = 0;
+ }
}
else if (!a_Player.GetEquippedItem().IsEmpty())
{