Fix an alone if to be with a missing else
authorLoic Blot <loic.blot@unix-experience.fr>
Fri, 16 Mar 2018 07:40:09 +0000 (08:40 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Fri, 16 Mar 2018 07:40:21 +0000 (08:40 +0100)
src/network/serverpackethandler.cpp

index 420a79757dc6ac685e74d3b6b1aadd62510f6a62..76a2dc3c289ce924f2abc955eea34b0b035cc741 100644 (file)
@@ -1093,7 +1093,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
                        client->SetBlockNotSent(blockpos);
                }
                // Placement -> above
-               if (action == 3) {
+               else if (action == 3) {
                        v3s16 blockpos = getNodeBlockPos(floatToInt(pointed_pos_above, BS));
                        client->SetBlockNotSent(blockpos);
                }