summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-02 11:51:41 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 11:51:41 +0200
commite8b0722137b47b9b17cef94a9a9f0f52d03f4ea8 (patch)
tree6dee9b82a6569104630056d902e77cca5fbda2a4 /src/content_sao.cpp
parented128fff263432f46cfbbc90657682b3c2c17132 (diff)
downloadminetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.tar.gz
minetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.tar.bz2
minetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.zip
Add time_from_last_punch to Lua API
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp2
1 files changed, 1 insertions, 1 deletions
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)