@@ -1467,21 +1467,22 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
1467
1467
NOTE: This can be used in the future to check if
1468
1468
somebody is cheating, by checking the timing.
1469
1469
*/
1470
+
1470
1471
MapNode n (CONTENT_IGNORE);
1471
1472
bool pos_ok;
1472
- n = m_env->getMap ().getNodeNoEx (p_under, &pos_ok);
1473
- if (pos_ok)
1474
- n = m_env->getMap ().getNodeNoEx (p_under, &pos_ok);
1475
1473
1474
+ n = m_env->getMap ().getNodeNoEx (p_under, &pos_ok);
1476
1475
if (!pos_ok) {
1477
1476
infostream << " Server: Not punching: Node not found."
1478
1477
<< " Adding block to emerge queue."
1479
1478
<< std::endl;
1480
- m_emerge->enqueueBlockEmerge (pkt->getPeerId (), getNodeBlockPos (p_above), false );
1479
+ m_emerge->enqueueBlockEmerge (pkt->getPeerId (),
1480
+ getNodeBlockPos (p_above), false );
1481
1481
}
1482
1482
1483
1483
if (n.getContent () != CONTENT_IGNORE)
1484
1484
m_script->node_on_punch (p_under, n, playersao, pointed);
1485
+
1485
1486
// Cheat prevention
1486
1487
playersao->noCheatDigStart (p_under);
1487
1488
}
@@ -1538,9 +1539,10 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
1538
1539
MapNode n = m_env->getMap ().getNodeNoEx (p_under, &pos_ok);
1539
1540
if (!pos_ok) {
1540
1541
infostream << " Server: Not finishing digging: Node not found."
1541
- << " Adding block to emerge queue."
1542
- << std::endl;
1543
- m_emerge->enqueueBlockEmerge (pkt->getPeerId (), getNodeBlockPos (p_above), false );
1542
+ << " Adding block to emerge queue."
1543
+ << std::endl;
1544
+ m_emerge->enqueueBlockEmerge (pkt->getPeerId (),
1545
+ getNodeBlockPos (p_above), false );
1544
1546
}
1545
1547
1546
1548
/* Cheat prevention */
0 commit comments