From 8b3ed78e53d8ad19d8dee3968430be258559214c Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 7 Jul 2014 01:20:25 -0400 Subject: Don't unload blocks if save failed Improve error handling in saveBlock() --- src/database-dummy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/database-dummy.h') diff --git a/src/database-dummy.h b/src/database-dummy.h index c0bee97c0..d179d4226 100644 --- a/src/database-dummy.h +++ b/src/database-dummy.h @@ -33,8 +33,8 @@ public: Database_Dummy(ServerMap *map); virtual void beginSave(); virtual void endSave(); - virtual void saveBlock(MapBlock *block); - virtual MapBlock* loadBlock(v3s16 blockpos); + virtual bool saveBlock(MapBlock *block); + virtual MapBlock *loadBlock(v3s16 blockpos); virtual void listAllLoadableBlocks(std::list &dst); virtual int Initialized(void); ~Database_Dummy(); -- cgit v1.2.3