summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-08 20:12:43 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-08 20:12:43 +0200
commit76fa3a7ccd69aee7293a19dc06c327020d3cf908 (patch)
tree01173745cf4ab3ff1b4c30df1498373159ff4986 /src/Protocol/Protocol18x.cpp
parentRecoded cProtocol180 class. (diff)
downloadcuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar.gz
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar.bz2
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar.lz
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar.xz
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.tar.zst
cuberite-76fa3a7ccd69aee7293a19dc06c327020d3cf908.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol18x.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index 1793583a2..46773a438 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -1908,6 +1908,11 @@ void cProtocol180::HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer)
}
HANDLE_READ(a_ByteBuffer, ReadByte, Byte, Face);
+ if (Face == 255)
+ {
+ Face = 0;
+ }
+
cItem Item;
ReadItem(a_ByteBuffer, Item);