From c51a4b9469fee0314d1b849206d1cf1c7c1240e4 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 10 Apr 2012 11:22:11 +0000 Subject: Added the "/regeneratechunk" command that regenerates either current chunk or a chunk specified with x, z parameters. TODO: permissions - we don't want guests erasing our chunks! git-svn-id: http://mc-server.googlecode.com/svn/trunk@454 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index a8591af65..29b7fce72 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -175,6 +175,9 @@ public: /// Marks (a_Stay == true) or unmarks (a_Stay == false) chunks as non-unloadable. To be used only by cChunkStay! void ChunksStay(const cChunkCoordsList & a_Chunks, bool a_Stay = true); + + /// Regenerate the given chunk: + void RegenerateChunk(int a_ChunkX, int a_ChunkZ); // TODO: Export to Lua bool DoWithEntity( int a_UniqueID, cEntityCallback & a_Callback ); @@ -324,7 +327,7 @@ private: AString m_WorldName; AString m_IniFileName; - + cWorld(const AString & a_WorldName); ~cWorld(); -- cgit v1.2.3