From e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 2 Dec 2011 11:51:41 +0200 Subject: Add time_from_last_punch to Lua API --- src/content_sao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index e0f230bbc..171e315af 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -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) -- cgit v1.2.3