diff options
author | Mattes D <github@xoft.cz> | 2016-09-05 15:05:54 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-09-05 15:05:54 +0200 |
commit | f7029eddd4120f672c59a4b3a4395832f4de8863 (patch) | |
tree | 81c93ca7c5c03ebdde2401e86dd8c02665710384 /src/Protocol/Protocol19x.h | |
parent | PluginLua: Removed unneeded assignment. (diff) | |
parent | Configurable dirty unused chunk cap to avoid RAM overuse (#3359) (diff) | |
download | cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar.gz cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar.bz2 cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar.lz cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar.xz cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.tar.zst cuberite-f7029eddd4120f672c59a4b3a4395832f4de8863.zip |
Diffstat (limited to 'src/Protocol/Protocol19x.h')
-rw-r--r-- | src/Protocol/Protocol19x.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Protocol/Protocol19x.h b/src/Protocol/Protocol19x.h index 2bf8df4f5..79180e3a7 100644 --- a/src/Protocol/Protocol19x.h +++ b/src/Protocol/Protocol19x.h @@ -116,7 +116,7 @@ public: virtual void SendPluginMessage (const AString & a_Channel, const AString & a_Message) override; virtual void SendRemoveEntityEffect (const cEntity & a_Entity, int a_EffectID) override; virtual void SendResetTitle (void) override; - virtual void SendRespawn (eDimension a_Dimension, bool a_ShouldIgnoreDimensionChecks) override; + virtual void SendRespawn (eDimension a_Dimension) override; virtual void SendSoundEffect (const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override; virtual void SendExperience (void) override; virtual void SendExperienceOrb (const cExpOrb & a_ExpOrb) override; @@ -183,11 +183,6 @@ protected: /** The logfile where the comm is logged, when g_ShouldLogComm is true */ cFile m_CommLogFile; - /** 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; - - /** Adds the received (unencrypted) data to m_ReceivedData, parses complete packets */ void AddReceivedData(const char * a_Data, size_t a_Size); @@ -264,10 +259,10 @@ protected: void WriteItem(cPacketizer & a_Pkt, const cItem & a_Item); /** Writes the metadata for the specified entity, not including the terminating 0xff. */ - void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity); + virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity); /** Writes the mob-specific metadata for the specified mob */ - void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob); + virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob); /** Writes the entity properties for the specified entity, including the Count field. */ void WriteEntityProperties(cPacketizer & a_Pkt, const cEntity & a_Entity); |