forked from mirrors/kolyah35-minecraft-pe-0.6.1
FEAT: Player data saving/loading
This commit is contained in:
parent
6957f144e1
commit
61a2349b8b
7 changed files with 146 additions and 3 deletions
|
|
@ -395,6 +395,11 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, SendInve
|
|||
auto items = packet->items;
|
||||
|
||||
minecraft->player->inventory->replace(items);
|
||||
|
||||
for (int i = 0; i < packet->linkedSlot.size(); i++) {
|
||||
minecraft->player->inventory->linkSlot(i, packet->linkedSlot[i].inventorySlot, true);
|
||||
LOGI("%i -> %i\n", packet->linkedSlot[i].inventorySlot, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue