mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Only apply "touch_punch_gesture" when wielded item has no on_use callback (#15098)
This commit is contained in:
parent
a8e7e261b9
commit
6bdd5c6773
4 changed files with 17 additions and 5 deletions
|
@ -9223,9 +9223,17 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and
|
|||
-- If specified as a table, the field to be used is selected according to
|
||||
-- the current `pointed_thing`.
|
||||
-- There are three possible TouchInteractionMode values:
|
||||
-- * "user" (meaning depends on client-side settings)
|
||||
-- * "long_dig_short_place" (long tap = dig, short tap = place)
|
||||
-- * "short_dig_long_place" (short tap = dig, long tap = place)
|
||||
-- * "user":
|
||||
-- * For `pointed_object`: Equivalent to "short_dig_long_place" if the
|
||||
-- client-side setting "touch_punch_gesture" is "short_tap" (the
|
||||
-- default value) and the item is able to punch (i.e. has no on_use
|
||||
-- callback defined).
|
||||
-- Equivalent to "long_dig_short_place" otherwise.
|
||||
-- * For `pointed_node` and `pointed_nothing`:
|
||||
-- Equivalent to "long_dig_short_place".
|
||||
-- * The behavior of "user" may change in the future.
|
||||
-- The default value is "user".
|
||||
|
||||
sound = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue