mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Fix overrideable hand ToolCapabilities and range (#15743)
This commit is contained in:
parent
d085f0fb52
commit
e0378737b7
6 changed files with 42 additions and 32 deletions
|
@ -75,8 +75,8 @@ public:
|
|||
Client *client, ClientEnvironment *env);
|
||||
|
||||
// If returns true, punch will not be sent to the server
|
||||
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem = nullptr,
|
||||
float time_from_last_punch = 1000000) { return false; }
|
||||
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem,
|
||||
const ItemStack *hand_item, float time_from_last_punch = 1000000) { return false; }
|
||||
|
||||
protected:
|
||||
// Used for creating objects based on type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue