Make entity on_punch have same signature and behaviour as player on_punch
This commit is contained in:
@@ -38,9 +38,9 @@ class ScriptApiEntity
|
||||
void luaentity_GetProperties(u16 id,
|
||||
ObjectProperties *prop);
|
||||
void luaentity_Step(u16 id, float dtime);
|
||||
void luaentity_Punch(u16 id,
|
||||
bool luaentity_Punch(u16 id,
|
||||
ServerActiveObject *puncher, float time_from_last_punch,
|
||||
const ToolCapabilities *toolcap, v3f dir);
|
||||
const ToolCapabilities *toolcap, v3f dir, s16 damage);
|
||||
void luaentity_Rightclick(u16 id,
|
||||
ServerActiveObject *clicker);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user