Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added enable_build_where_you_stand option
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
  • Loading branch information
Sokomine authored and Zeno- committed Nov 26, 2014
1 parent ec5188a commit 9f92790
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minetest.conf.example
Expand Up @@ -62,6 +62,9 @@
#keymap_quicktune_dec = KEY_NEXT
#keymap_quicktune_inc = KEY_PRIOR

#if set to true, you can place blocks at the position (feet + eye level) where you stand; this is helpful when working with nodeboxes
#enable_build_where_you_stand = false

# Minimum FPS
# The amount of rendered stuff is dynamically set according to this
#wanted_fps = 30
Expand Down
1 change: 1 addition & 0 deletions src/defaultsettings.cpp
Expand Up @@ -63,6 +63,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("keymap_camera_mode", "KEY_F7");
settings->setDefault("keymap_increase_viewing_range_min", "+");
settings->setDefault("keymap_decrease_viewing_range_min", "-");
settings->setDefault("enable_build_where_you_stand", "false" );
settings->setDefault("3d_mode", "none");
settings->setDefault("3d_paralax_strength", "0.025");
settings->setDefault("aux1_descends", "false");
Expand Down
1 change: 1 addition & 0 deletions src/game.cpp
Expand Up @@ -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) &&
Expand Down

0 comments on commit 9f92790

Please sign in to comment.