1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

added enable_build_where_you_stand option

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
Sokomine 2014-11-22 21:40:23 +01:00 committed by Craig Robbins
parent ec5188a49a
commit 9f9279008c
3 changed files with 5 additions and 0 deletions

View file

@ -967,6 +967,7 @@ bool nodePlacementPrediction(Client &client,
// Dont place node when player would be inside new node
// NOTE: This is to be eventually implemented by a mod as client-side Lua
if (!nodedef->get(n).walkable ||
g_settings->getBool("enable_build_where_you_stand") ||
(client.checkPrivilege("noclip") && g_settings->getBool("noclip")) ||
(nodedef->get(n).walkable &&
neighbourpos != player->getStandingNodePos() + v3s16(0, 1, 0) &&