From f2681777fb21c134cd96ae1e06bf5266a59bfd5d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 8 May 2012 11:31:54 +0000 Subject: Fast NBT writer (Saving a chunk is now about twice as fast) git-svn-id: http://mc-server.googlecode.com/svn/trunk@484 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WSSAnvil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/WSSAnvil.h') 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); -- cgit v1.2.3