]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fixed FastPlace and AutoPlace
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 28 Nov 2020 15:22:30 +0000 (16:22 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 28 Nov 2020 15:22:30 +0000 (16:22 +0100)
src/client/game.cpp

index 242e49e97b77cf6762c65009829ab46b33789ed7..8537ba39aafac02c315f2af3377a37d818d346e4 100644 (file)
@@ -2562,8 +2562,8 @@ void Game::handlePointingAtNode(const PointedThing &pointed,
                }
        }
 
-       if (((wasKeyPressed(KeyType::PLACE) || g_settings->getBool("autoplace")) ||
-                       (runData.repeat_place_timer >= (g_settings->getBool("fastplace") ? 0 : m_repeat_place_time))) &&
+       if ((wasKeyPressed(KeyType::PLACE) ||
+                       (runData.repeat_place_timer >= (g_settings->getBool("fastplace") ? 0.001 : m_repeat_place_time))) &&
                        client->checkPrivilege("interact")) {
                runData.repeat_place_timer = 0;
                infostream << "Place button pressed while looking at ground" << std::endl;