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
@@ -85,6 +85,7 @@ public:
|
||||
virtual void SendExplosion (double a_BlockX, double a_BlockY, double a_BlockZ, float a_Radius, const cVector3iArray & a_BlocksAffected, const Vector3d & a_PlayerMotion) override;
|
||||
virtual void SendGameMode (eGameMode a_GameMode) override;
|
||||
virtual void SendHealth (void) override;
|
||||
virtual void SendHeldItemChange (int a_ItemIndex) override;
|
||||
virtual void SendHideTitle (void) override;
|
||||
virtual void SendInventorySlot (char a_WindowID, short a_SlotNum, const cItem & a_Item) override;
|
||||
virtual void SendKeepAlive (UInt32 a_PingID) override;
|
||||
|
||||
Reference in New Issue
Block a user