mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Place block when holding sneak while right-clicking nodes with formspec
This commit is contained in:
parent
d6f0bf9eef
commit
c1fee78e85
@ -2482,7 +2482,9 @@ void the_game(
|
|||||||
|
|
||||||
// Sign special case, at least until formspec is properly implemented.
|
// Sign special case, at least until formspec is properly implemented.
|
||||||
// Deprecated?
|
// Deprecated?
|
||||||
if(meta && meta->getString("formspec") == "hack:sign_text_input" && !random_input)
|
if(meta && meta->getString("formspec") == "hack:sign_text_input"
|
||||||
|
&& !random_input
|
||||||
|
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
|
||||||
{
|
{
|
||||||
infostream<<"Launching metadata text input"<<std::endl;
|
infostream<<"Launching metadata text input"<<std::endl;
|
||||||
|
|
||||||
@ -2497,7 +2499,8 @@ void the_game(
|
|||||||
wtext))->drop();
|
wtext))->drop();
|
||||||
}
|
}
|
||||||
// If metadata provides an inventory view, activate it
|
// If metadata provides an inventory view, activate it
|
||||||
else if(meta && meta->getString("formspec") != "" && !random_input)
|
else if(meta && meta->getString("formspec") != "" && !random_input
|
||||||
|
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
|
||||||
{
|
{
|
||||||
infostream<<"Launching custom inventory view"<<std::endl;
|
infostream<<"Launching custom inventory view"<<std::endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user