Fixed FastPlace and AutoPlace

master
Elias Fleckenstein 2020-11-28 16:22:30 +01:00
parent 9633ad122b
commit eaa8a51323
1 changed files with 2 additions and 2 deletions

View 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;