diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-15 21:25:13 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-15 21:25:13 +0100 |
commit | 007d668c1bdd29bc6d28de0db2681f5c2f77ed5c (patch) | |
tree | b851a5f79d47b32c5cd50d427afefc40d95504e7 /src/Entities | |
parent | Merge pull request #437 from mc-server/ShootTo_function (diff) | |
download | cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar.gz cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar.bz2 cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar.lz cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar.xz cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.tar.zst cuberite-007d668c1bdd29bc6d28de0db2681f5c2f77ed5c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 38b911fd2..5165c2f8a 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1517,6 +1517,7 @@ bool cPlayer::LoadFromDisk() m_FoodExhaustionLevel = root.get("foodExhaustion", 0).asDouble(); m_LifetimeTotalXp = (short) root.get("xpTotal", 0).asInt(); m_CurrentXp = (short) root.get("xpCurrent", 0).asInt(); + m_IsFlying = root.get("isflying", 0).asBool(); //SetExperience(root.get("experience", 0).asInt()); @@ -1567,7 +1568,8 @@ bool cPlayer::SaveToDisk() root["foodSaturation"] = m_FoodSaturationLevel; root["foodTickTimer"] = m_FoodTickTimer; root["foodExhaustion"] = m_FoodExhaustionLevel; - root["world"] = GetWorld()->GetName(); + root["world"] = GetWorld()->GetName(); + root["isflying"] = IsFlying(); if (m_GameMode == GetWorld()->GetGameMode()) { |