summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-02 19:51:37 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-02 19:51:37 +0200
commitabb49d3f338de4078177d1b95e3ed8d195119b50 (patch)
tree587db807983ed6656146eb79681d2a6249cbd1e2 /src/Entities/Player.cpp
parentRemoved unneeded code (diff)
downloadcuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar.gz
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar.bz2
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar.lz
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar.xz
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.tar.zst
cuberite-abb49d3f338de4078177d1b95e3ed8d195119b50.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index aeeea3d07..f888af642 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1787,20 +1787,20 @@ bool cPlayer::SaveToDisk()
cEnderChestEntity::SaveToJson(JSON_EnderChestInventory, m_EnderChestContents);
Json::Value root;
- root["position"] = JSON_PlayerPosition;
- root["rotation"] = JSON_PlayerRotation;
- root["inventory"] = JSON_Inventory;
+ root["position"] = JSON_PlayerPosition;
+ root["rotation"] = JSON_PlayerRotation;
+ root["inventory"] = JSON_Inventory;
root["enderchestinventory"] = JSON_EnderChestInventory;
- root["health"] = m_Health;
- root["xpTotal"] = m_LifetimeTotalXp;
- root["xpCurrent"] = m_CurrentXp;
- root["air"] = m_AirLevel;
- root["food"] = m_FoodLevel;
- root["foodSaturation"] = m_FoodSaturationLevel;
- root["foodTickTimer"] = m_FoodTickTimer;
- root["foodExhaustion"] = m_FoodExhaustionLevel;
- root["world"] = GetWorld()->GetName();
- root["isflying"] = IsFlying();
+ root["health"] = m_Health;
+ root["xpTotal"] = m_LifetimeTotalXp;
+ root["xpCurrent"] = m_CurrentXp;
+ root["air"] = m_AirLevel;
+ root["food"] = m_FoodLevel;
+ root["foodSaturation"] = m_FoodSaturationLevel;
+ root["foodTickTimer"] = m_FoodTickTimer;
+ root["foodExhaustion"] = m_FoodExhaustionLevel;
+ root["world"] = GetWorld()->GetName();
+ root["isflying"] = IsFlying();
if (m_GameMode == GetWorld()->GetGameMode())
{