recover hotbar selected slot after reconnect (#4249)
1. implement protocol message SendHeldItemChange 2. add save / load inventory equipped item slot in JSON 3. send held item slot message after player connect to server Fixes #4189
This commit is contained in:
committed by
peterbell10
parent
7b431bed51
commit
3e802932a6
@@ -428,6 +428,17 @@ void cProtocolRecognizer::SendHealth(void)
|
||||
|
||||
|
||||
|
||||
void cProtocolRecognizer::SendHeldItemChange(int a_ItemIndex)
|
||||
{
|
||||
ASSERT(m_Protocol != nullptr);
|
||||
m_Protocol->SendHeldItemChange(a_ItemIndex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cProtocolRecognizer::SendHideTitle(void)
|
||||
{
|
||||
ASSERT(m_Protocol != nullptr);
|
||||
|
||||
Reference in New Issue
Block a user