diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-11-16 15:31:57 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-03-06 00:20:45 -0500 |
commit | 708337dfc2b3871dc6de983e781e4a4a60a1881d (patch) | |
tree | 97352d676d9d76b036d8b559ae4d3c6fe83bbf12 /src/network | |
parent | c7454d4732dee0f7364ccb8e07002df1a037b94d (diff) | |
download | minetest-708337dfc2b3871dc6de983e781e4a4a60a1881d.tar.gz minetest-708337dfc2b3871dc6de983e781e4a4a60a1881d.tar.bz2 minetest-708337dfc2b3871dc6de983e781e4a4a60a1881d.zip |
Clean up database API and save the local map on an interval
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/packethandlers/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/packethandlers/client.cpp b/src/network/packethandlers/client.cpp index e1e57b3a6..82f8b61b7 100644 --- a/src/network/packethandlers/client.cpp +++ b/src/network/packethandlers/client.cpp @@ -168,8 +168,8 @@ void Client::handleCommand_BlockData(NetworkPacket* pkt) sector->insertBlock(block); } - if (localdb != NULL) { - ((ServerMap&) localserver->getMap()).saveBlock(block, localdb); + if (m_localdb) { + ServerMap::saveBlock(block, m_localdb); } /* |