minetest/mods
Alex Yst 19709ec868
Remove leaf decay/sneak key gotcha'
When a player places leaves, those leaves aren't subject to leaf decay, because the player deliberately placed them there, and thus clearly wants them to stay. However, if the player happens to be holding the "sneak" key - for example, if they're up on top of something high and trying not to fall off - the "param2" value of the leaf node doesn't get set, meaning that the leaves aren't marked as being player-placed, and are not immune to leaf decay. There is absolutely *no* indication of this in-game. My leaves kept disappearing on me, with no apparent cause, leading me to believe some sort of bug was at work here, and not a deliberately-coded feature.

My proposal is that this annoying quirk be removed. If a player places leaves, they probably want them there, and if they don't, they can remove them when they're done with them. This pull request does just that.

An alternative, if you want to keep this behaviour, would be to inform the player of this counter-intuitive functionality in some way. For example, the screwdriver includes usage information in its "description" field, so when  a player looks at what the screwdriver is, they see the usage information. Similarly, while carts don't have full usage information in their "description" field, they do have instructions for the most difficult thing to figure out: picking them up and putting them back into the players' inventory. Similarly, leaf nodes could contain information about this in their descriptions as well.
2019-09-27 22:44:50 -07:00
..
beds Add translation templates and German translation 2019-09-22 13:42:40 +02:00
binoculars Add translation templates and German translation 2019-09-22 13:42:40 +02:00
boats Add translation templates and German translation 2019-09-22 13:42:40 +02:00
bones Add translation templates and German translation 2019-09-22 13:42:40 +02:00
bucket Add translation templates and German translation 2019-09-22 13:42:40 +02:00
butterflies Add translation templates and German translation 2019-09-22 13:42:40 +02:00
carts Add translation templates and German translation 2019-09-22 13:42:40 +02:00
creative Add translation templates and German translation 2019-09-22 13:42:40 +02:00
default Remove leaf decay/sneak key gotcha' 2019-09-27 22:44:50 -07:00
doors Add translation templates and German translation 2019-09-22 13:42:40 +02:00
dungeon_loot Switch to mod.conf, delete deprecated depends.txt 2019-07-17 00:38:23 +02:00
dye Add translation templates and German translation 2019-09-22 13:42:40 +02:00
env_sounds Add initial environmental sounds mod with flowing water sounds 2019-09-12 00:46:40 +01:00
farming Add translation templates and German translation 2019-09-22 13:42:40 +02:00
fire Add translation templates and German translation 2019-09-22 13:42:40 +02:00
fireflies Add translation templates and German translation 2019-09-22 13:42:40 +02:00
flowers Add translation templates and German translation 2019-09-22 13:42:40 +02:00
game_commands Add translation templates and German translation 2019-09-22 13:42:40 +02:00
give_initial_stuff Add support for MT 5 game translation (rebasing ) (#2466) 2019-09-10 19:09:51 +02:00
map Add translation templates and German translation 2019-09-22 13:42:40 +02:00
player_api Add support for MT 5 game translation (rebasing ) (#2466) 2019-09-10 19:09:51 +02:00
screwdriver Add translation templates and German translation 2019-09-22 13:42:40 +02:00
sethome Add translation templates and German translation 2019-09-22 13:42:40 +02:00
sfinv Add translation templates and German translation 2019-09-22 13:42:40 +02:00
spawn Add support for MT 5 game translation (rebasing ) (#2466) 2019-09-10 19:09:51 +02:00
stairs Add translation templates and German translation 2019-09-22 13:42:40 +02:00
tnt Add translation templates and German translation 2019-09-22 13:42:40 +02:00
vessels Add translation templates and German translation 2019-09-22 13:42:40 +02:00
walls Add translation templates and German translation 2019-09-22 13:42:40 +02:00
wool Add translation templates and German translation 2019-09-22 13:42:40 +02:00
xpanes Fix glass panes sides (#2500) 2019-09-27 00:35:06 +02:00