From 9f9279008c9299f6f1accd0a3b230877caa87930 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 22 Nov 2014 21:40:23 +0100 Subject: added enable_build_where_you_stand option Signed-off-by: Craig Robbins --- src/game.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 70d526a9d..4af483bd7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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) && -- cgit v1.2.3