aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-28 16:22:30 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-28 16:22:30 +0100
commiteaa8a51323ded43c099ff0e1e09346faafe5baa9 (patch)
treef093888777f6b21056c63516c0567e5039ccf64f /src
parent9633ad122b4b0f90fa937a0f0df38e488344ddec (diff)
downloaddragonfireclient-eaa8a51323ded43c099ff0e1e09346faafe5baa9.tar.xz
Fixed FastPlace and AutoPlace
Diffstat (limited to 'src')
-rw-r--r--src/client/game.cpp4
1 files changed, 2 insertions, 2 deletions
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;