summaryrefslogtreecommitdiffstats
path: root/source/WSSAnvil.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 13:31:54 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 13:31:54 +0200
commitf2681777fb21c134cd96ae1e06bf5266a59bfd5d (patch)
treed4f9e3b5463925581a2ce6febabb44411bf3d3a4 /source/WSSAnvil.h
parentFixed two "bottlenecks" found using profiling - MakeIndex() instead of MakeIndexNoCheck() (diff)
downloadcuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar.gz
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar.bz2
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar.lz
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar.xz
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.tar.zst
cuberite-f2681777fb21c134cd96ae1e06bf5266a59bfd5d.zip
Diffstat (limited to '')
-rw-r--r--source/WSSAnvil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/WSSAnvil.h b/source/WSSAnvil.h
index 58259f0e8..85b4fcaf1 100644
--- a/source/WSSAnvil.h
+++ b/source/WSSAnvil.h
@@ -102,8 +102,8 @@ protected:
/// Loads the chunk from NBT data (no locking needed)
bool LoadChunkFromNBT(const cChunkCoords & a_Chunk, const cParsedNBT & a_NBT);
- /// Saves the chunk into NBT data; returns NULL for failure
- cNBTTag * SaveChunkToNBT(const cChunkCoords & a_Chunk);
+ /// Saves the chunk into NBT data using a_Writer; returns true on success
+ bool SaveChunkToNBT(const cChunkCoords & a_Chunk, cFastNBTWriter & a_Writer);
/// Loads the chunk's entities from NBT data (a_Tag is the Level\\Entities list tag; may be -1)
void LoadEntitiesFromNBT(cEntityList & a_Entitites, const cParsedNBT & a_NBT, int a_Tag);