X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmap.h;h=9b505d8e66984807d19d305910f00126062dfc1f;hb=e5b4748bb44a12fd09a92f7d36986b4bda86e6bf;hp=f4c7bb2fceb799026ac998bbe8ce6a2ac871b60e;hpb=a2e1b0fc7fa9a470f645e130115ce14a89aa2e02;p=oweals%2Fminetest.git diff --git a/src/map.h b/src/map.h index f4c7bb2fc..9b505d8e6 100644 --- a/src/map.h +++ b/src/map.h @@ -270,7 +270,7 @@ public: // Server implements this. // Client leaves it as no-op. - virtual bool saveBlock(MapBlock *block){ return false; }; + virtual bool saveBlock(MapBlock *block) { return false; }; /* Updates usage timers and unloads unused blocks and sectors. @@ -485,6 +485,7 @@ public: // Returns true if sector now resides in memory //bool deFlushSector(v2s16 p2d); + bool saveBlock(MapBlock *block, Database *db); bool saveBlock(MapBlock *block); // This will generate a sector with getSector if not found. void loadBlock(std::string sectordir, std::string blockfile, MapSector *sector, bool save_after_load=false); @@ -560,4 +561,3 @@ protected: }; #endif -