1.8: Fixed tab complete.
This commit is contained in:
parent
8f8693a71e
commit
fa2b69b3f3
@ -289,7 +289,7 @@ protected:
|
||||
virtual void HandlePacketPluginMessage (cByteBuffer & a_ByteBuffer);
|
||||
void HandlePacketSlotSelect (cByteBuffer & a_ByteBuffer);
|
||||
virtual void HandlePacketSteerVehicle (cByteBuffer & a_ByteBuffer);
|
||||
void HandlePacketTabComplete (cByteBuffer & a_ByteBuffer);
|
||||
virtual void HandlePacketTabComplete (cByteBuffer & a_ByteBuffer);
|
||||
void HandlePacketUpdateSign (cByteBuffer & a_ByteBuffer);
|
||||
virtual void HandlePacketUseEntity (cByteBuffer & a_ByteBuffer);
|
||||
void HandlePacketEnchantItem (cByteBuffer & a_ByteBuffer);
|
||||
|
@ -1132,3 +1132,20 @@ void cProtocol180::HandlePacketBlockDig(cByteBuffer & a_ByteBuffer)
|
||||
|
||||
|
||||
|
||||
|
||||
void cProtocol180::HandlePacketTabComplete(cByteBuffer & a_ByteBuffer)
|
||||
{
|
||||
HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, Text);
|
||||
HANDLE_READ(a_ByteBuffer, ReadBool, bool, HasPosition);
|
||||
|
||||
if (HasPosition)
|
||||
{
|
||||
HANDLE_READ(a_ByteBuffer, ReadBEInt64, Int64, Position);
|
||||
}
|
||||
|
||||
m_Client->HandleTabCompletion(Text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -112,7 +112,8 @@ protected:
|
||||
virtual void HandlePacketPlayerPosLook(cByteBuffer & a_ByteBuffer) override;
|
||||
virtual void HandlePacketClientSettings(cByteBuffer & a_ByteBuffer) override;
|
||||
virtual void HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer) override;
|
||||
virtual void HandlePacketBlockDig(cByteBuffer & a_ByteBuffer);
|
||||
virtual void HandlePacketBlockDig(cByteBuffer & a_ByteBuffer)override;
|
||||
virtual void HandlePacketTabComplete(cByteBuffer & a_ByteBuffer) override;
|
||||
} ;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user