mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 16:01:51 +00:00
fix player serialization
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
This commit is contained in:
parent
17bdbb1a38
commit
73c16a2f58
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ void Player::deserialize(const dv::value& src) {
|
||||||
src.at("loading-chunks").get(loadingChunks);
|
src.at("loading-chunks").get(loadingChunks);
|
||||||
|
|
||||||
setChosenSlot(src["chosen-slot"].asInteger());
|
setChosenSlot(src["chosen-slot"].asInteger());
|
||||||
eid = src["entity"].asNumber();
|
eid = src["entity"].asInteger();
|
||||||
|
|
||||||
if (src.has("inventory")) {
|
if (src.has("inventory")) {
|
||||||
getInventory()->deserialize(src["inventory"]);
|
getInventory()->deserialize(src["inventory"]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue