From: Loic Blot Date: Fri, 16 Mar 2018 07:40:09 +0000 (+0100) Subject: Fix an alone if to be with a missing else X-Git-Tag: 5.0.0~515 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5e61f64ce259fe0b23cbb377b44e90a0fbc820d7;p=oweals%2Fminetest.git Fix an alone if to be with a missing else --- diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 420a79757..76a2dc3c2 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -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); }