From: Kahrl Date: Sat, 27 Apr 2013 01:28:27 +0000 (+0200) Subject: Server: force block send of pointed_pos_under after predicted node place X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=be4cc306a54375f362ae13f9e4111ea11a739837;p=zefram%2Fminetest%2Fminetest_engine.git Server: force block send of pointed_pos_under after predicted node place --- diff --git a/src/server.cpp b/src/server.cpp index d5e50519..37bb7a35 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2980,12 +2980,16 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) playersao->setWieldedItem(item); } - // If item has node placement prediction, always send the above - // node to make sure the client knows what exactly happened + // If item has node placement prediction, always send the + // blocks to make sure the client knows what exactly happened if(item.getDefinition(m_itemdef).node_placement_prediction != ""){ RemoteClient *client = getClient(peer_id); v3s16 blockpos = getNodeBlockPos(floatToInt(pointed_pos_above, BS)); client->SetBlockNotSent(blockpos); + v3s16 blockpos2 = getNodeBlockPos(floatToInt(pointed_pos_under, BS)); + if(blockpos2 != blockpos){ + client->SetBlockNotSent(blockpos2); + } } } // action == 3