summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authormathiascode <8754153+mathiascode@users.noreply.github.com>2017-08-25 14:52:32 +0200
committerMattes D <github@xoft.cz>2017-08-25 14:52:32 +0200
commit4b842888010c3ce344da0b433c36504ebb51e4e2 (patch)
treee4a2386c8c7017f693fc1354763b73c149c95fcb /src/Protocol
parentAdd cUUID class (#3871) (diff)
downloadcuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar.gz
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar.bz2
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar.lz
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar.xz
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.tar.zst
cuberite-4b842888010c3ce344da0b433c36504ebb51e4e2.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_8.cpp1
-rw-r--r--src/Protocol/Protocol_1_9.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp
index 42e69fd43..0e7abfd7a 100644
--- a/src/Protocol/Protocol_1_8.cpp
+++ b/src/Protocol/Protocol_1_8.cpp
@@ -1547,6 +1547,7 @@ void cProtocol_1_8_0::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity)
case E_BLOCK_BEACON: Action = 3; break; // Update beacon entity
case E_BLOCK_HEAD: Action = 4; break; // Update Mobhead entity
case E_BLOCK_FLOWER_POT: Action = 5; break; // Update flower pot
+ case E_BLOCK_BED: Action = 11; break; // Update bed color
default: ASSERT(!"Unhandled or unimplemented BlockEntity update request!"); break;
}
Pkt.WriteBEUInt8(Action);
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index 0c5ac58f6..7fc6cf5f1 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -1567,6 +1567,7 @@ void cProtocol_1_9_0::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity)
case E_BLOCK_BEACON: Action = 3; break; // Update beacon entity
case E_BLOCK_HEAD: Action = 4; break; // Update Mobhead entity
case E_BLOCK_FLOWER_POT: Action = 5; break; // Update flower pot
+ case E_BLOCK_BED: Action = 11; break; // Update bed color
default: ASSERT(!"Unhandled or unimplemented BlockEntity update request!"); break;
}
Pkt.WriteBEUInt8(Action);