1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-12 16:58:39 +00:00

Add time_from_last_punch to Lua API

This commit is contained in:
Perttu Ahola 2011-12-02 11:51:41 +02:00
parent ed128fff26
commit e8b0722137
4 changed files with 9 additions and 6 deletions

View file

@ -1678,7 +1678,7 @@ void LuaEntitySAO::punch(ServerActiveObject *puncher, float time_from_last_punch
if(!m_registered)
return;
lua_State *L = m_env->getLua();
scriptapi_luaentity_punch(L, m_id, puncher);
scriptapi_luaentity_punch(L, m_id, puncher, time_from_last_punch);
}
void LuaEntitySAO::rightClick(ServerActiveObject *clicker)