From eaa8a51323ded43c099ff0e1e09346faafe5baa9 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 28 Nov 2020 16:22:30 +0100 Subject: Fixed FastPlace and AutoPlace --- src/client/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/game.cpp b/src/client/game.cpp index 242e49e97..8537ba39a 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -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; -- cgit v1.2.3