mirror of
https://github.com/minetest/minetest.git
synced 2025-06-30 23:20:22 +02:00
Client::Interact: Use InteractAction enum instead of numeric constants
This replaces the magic numbers used as interaction modes both client-side and server-side, primarily for the sake of ease-of-readability.
This commit is contained in:
@ -232,7 +232,7 @@ public:
|
||||
|
||||
void Send(NetworkPacket* pkt);
|
||||
|
||||
void interact(u8 action, const PointedThing& pointed);
|
||||
void interact(InteractAction action, const PointedThing &pointed);
|
||||
|
||||
void sendNodemetaFields(v3s16 p, const std::string &formname,
|
||||
const StringMap &fields);
|
||||
|
Reference in New Issue
Block a user