diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-26 19:50:23 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-26 19:50:23 +0200 |
commit | e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0 (patch) | |
tree | 8cb2098da03ec8c2d66f8f36a53e4cf4280b554a /src/WorldStorage/WSSCompact.cpp | |
parent | Replaced all the .data() calls so the code compiles in VS2008 (diff) | |
download | cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar.gz cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar.bz2 cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar.lz cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar.xz cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.tar.zst cuberite-e40f9d6e5b93e840e3d67e79f5ba49da1fbb75f0.zip |
Diffstat (limited to 'src/WorldStorage/WSSCompact.cpp')
-rw-r--r-- | src/WorldStorage/WSSCompact.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/WorldStorage/WSSCompact.cpp b/src/WorldStorage/WSSCompact.cpp index bb9d4b9e6..b44dd02c5 100644 --- a/src/WorldStorage/WSSCompact.cpp +++ b/src/WorldStorage/WSSCompact.cpp @@ -107,15 +107,13 @@ void cJsonChunkSerializer::BlockEntity(cBlockEntity * a_BlockEntity) -bool cJsonChunkSerializer::LightIsValid(bool a_IsLightValid) +void cJsonChunkSerializer::LightIsValid(bool a_IsLightValid) { - if (!a_IsLightValid) + if (a_IsLightValid) { - return false; + m_Root["IsLightValid"] = true; + m_HasJsonData = true; } - m_Root["IsLightValid"] = true; - m_HasJsonData = true; - return true; } |