Skip to content

hand items use their on_use function #15929

@tigersharke

Description

@tigersharke

Luanti version

commit that caused the breakage: https://github.com/luanti-org/luanti/pull/15743

Luanti 5.12.0-dev (BSD)
Using LuaJIT 2.1.1736781742
Built by Clang 19.1
Running on FreeBSD/14.2 amd64
BUILD_TYPE=Release
RUN_IN_PLACE=0
USE_CURL=1
USE_GETTEXT=1
USE_SOUND=1
STATIC_SHAREDIR="/usr/local/share/luanti"
STATIC_LOCALEDIR="/usr/local/share/locale"

Operating system and version

FreeBSD/14.2 amd64

CPU model

No response

GPU model

No response

Active renderer

No response

Summary

When attempting to play on a NodeCore server or NodeCore in singleplayer, the usual action for left mouse click is ineffectual. There is animation for hand movement but no objects can be broken (dirt, leaves) or taken (flowers, any item on ground). If there is already a tool in hand, it may be used but if dropped or placed then it cannot be reclaimed.

This specifically affects NodeCore but could affect more.

Steps to reproduce

Build or install commit 15743, run luanti client to use a NodeCore server or NodeCore in singleplayer, attempt to break leaves from a tree or yank a flower, or break plain dirt to loose dirt, all use the left click of mouse for action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not a bugThe behaviour is working as intended and won't be changedPossible closeRegressionSomething that used to work no longer does

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions