Fix unhandled InvalidPositionException
authorPerttu Ahola <celeron55@gmail.com>
Tue, 10 Apr 2012 15:16:03 +0000 (18:16 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 10 Apr 2012 15:16:03 +0000 (18:16 +0300)
src/server.cpp

index 389f6282fcd28c7c778cc8e030865b4484fddfc0..b0a0fb6fdca3a01474bb3fe56b8831cfe86981b7 100644 (file)
@@ -3047,7 +3047,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
                                if(n.getContent() != CONTENT_IGNORE)
                                        scriptapi_node_on_dig(m_lua, p_under, n, playersao);
 
-                               if (m_env->getMap().getNode(p_under).getContent() != CONTENT_AIR)
+                               if (m_env->getMap().getNodeNoEx(p_under).getContent() != CONTENT_AIR)
                                {
                                        // Re-send block to revert change on client-side
                                        RemoteClient *client = getClient(peer_id);