FEAT: Player data saving/loading

This commit is contained in:
Kolyah35
2026-03-27 21:26:25 +03:00
parent 6957f144e1
commit 61a2349b8b
7 changed files with 146 additions and 3 deletions

View File

@@ -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);
}
}
}