Suppress axle rotating items in builders when holding aux1 - #134
Conversation
|
Usually Sneak/Shift bypasses callbacks --> https://github.com/luanti-org/luanti/blob/ecda1027f3c501eb9c2274a1815e1997831300af/builtin/game/item.lua#L338-L341 Is that key already bound to another functionality? If not - then I would suggest to use Sneak/Shift instead. |
|
I actually tried sneak first, because I forgot it prevents the whole |
|
Ah yes, of course. Would you please be so nice to document this behaviour somewhere (doc, node description, ..?), such that players get to know about this feature? |
Of course, I added it to the doc entry, because the description currently has just the name without any further information. |
When the axle rotates the digger, param2 of builders is also rotated accordingly. This is a cool feature, but sometimes it is not the right thing to do, e.g. when building a large platform spiraling out with a small digtron, or when building with column like nodes (e.g. tree trunks) that should only be placed in 6 (or even only 3 in mineclone2 derived games) directions.
This PR changes the axle to not rotate builder param2 when aux1 is held when triggering the axle.