From 7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b Mon Sep 17 00:00:00 2001 From: faketruth Date: Fri, 20 Jan 2012 17:39:16 +0000 Subject: MCServer is now compatible with Minecraft client 1.1 (as long as the client is not using any mods/plugins I think) git-svn-id: http://mc-server.googlecode.com/svn/trunk@165 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_Respawn.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/packets/cPacket_Respawn.h') diff --git a/source/packets/cPacket_Respawn.h b/source/packets/cPacket_Respawn.h index ab8fbe72a..a9a838167 100644 --- a/source/packets/cPacket_Respawn.h +++ b/source/packets/cPacket_Respawn.h @@ -2,6 +2,8 @@ #include "cPacket.h" #include "PacketID.h" +#include "cPacket_Login.h" +#include class cPacket_Respawn : public cPacket { @@ -12,6 +14,7 @@ public: , m_CreativeMode( 0 ) , m_WorldHeight( 0 ) , m_MapSeed( 0 ) + , m_LevelType( cPacket_Login::LEVEL_TYPE_DEFAULT ) { m_PacketID = E_RESPAWN; } virtual cPacket* Clone() const { return new cPacket_Respawn( *this ); } @@ -23,6 +26,7 @@ public: char m_CreativeMode; short m_WorldHeight; long long m_MapSeed; + std::string m_LevelType; - static const unsigned int c_Size = 1 + 1 + 1 + 1 + 2 + 8; + static const unsigned int c_Size = 1 + 1 + 1 + 1 + 2 + 8 + 2; }; -- cgit v1.2.3