summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-22 21:18:13 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-22 21:18:13 +0200
commit9cddffb6df595afef1584c92b6d5fc97c9eb162c (patch)
tree67dcd7f1f5e5b9fc854457f90a104953b30099cb /src/Protocol/Protocol18x.h
parentFixed item nbt reading. (diff)
downloadcuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar.gz
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar.bz2
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar.lz
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar.xz
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.tar.zst
cuberite-9cddffb6df595afef1584c92b6d5fc97c9eb162c.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol18x.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Protocol/Protocol18x.h b/src/Protocol/Protocol18x.h
index 2275f6298..59a5dd0b6 100644
--- a/src/Protocol/Protocol18x.h
+++ b/src/Protocol/Protocol18x.h
@@ -269,9 +269,6 @@ protected:
/** The dimension that was last sent to a player in a Respawn or Login packet.
Used to avoid Respawning into the same dimension, which confuses the client. */
eDimension m_LastSentDimension;
-
- /** Read a nbt data from the buffer. (It's needed because the 1.8 protocol doesn't send the nbt length) */
- AString ReadNBTDataFromBuffer(cByteBuffer & a_ByteBuffer, int a_ListTag = 0);
/** Adds the received (unencrypted) data to m_ReceivedData, parses complete packets */
@@ -325,7 +322,7 @@ protected:
void SendCompass(const cWorld & a_World);
/** Reads an item out of the received data, sets a_Item to the values read. Returns false if not enough received data */
- virtual bool ReadItem(cByteBuffer & a_ByteBuffer, cItem & a_Item);
+ virtual bool ReadItem(cByteBuffer & a_ByteBuffer, cItem & a_Item, size_t a_MetadataSize = 1);
/** Parses item metadata as read by ReadItem(), into the item enchantments. */
void ParseItemMetadata(cItem & a_Item, const AString & a_Metadata);