Make call to `punch` compatible with MT 5.4.0

Fixes #6
This commit is contained in:
upsilon 2020-11-03 17:06:02 +01:00
parent 1f88969175
commit 059cc897af
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ local function arrow_punch(object, hitter, caps)
if time_from_last_punch >= (caps.full_punch_interval or 1) then
last_punch_times[hitter_name][player_name] = os.time()
end
object:punch(hitter, time_from_last_punch, caps)
object:punch(hitter, time_from_last_punch, caps, nil)
end
if get_setting("arrow") then