107 | 107 |
if time_from_last_punch >= (caps.full_punch_interval or 1) then
|
108 | 108 |
last_punch_times[hitter_name][player_name] = os.time()
|
109 | 109 |
end
|
110 | |
object:punch(hitter, time_from_last_punch, caps)
|
|
110 |
object:punch(hitter, time_from_last_punch, caps, nil)
|
111 | 111 |
end
|
112 | 112 |
|
113 | 113 |
if get_setting("arrow") then
|
|
209 | 209 |
on_hit_sound = "throwing_teleport_arrow",
|
210 | 210 |
on_hit = function(self, _, last_pos, _, _, hitter)
|
211 | 211 |
if minetest.get_node(last_pos).name ~= "air" then
|
212 | |
minetest.log("warning", S("[throwing] BUG: node at @1 was not air", last_pos))
|
|
212 |
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
213 | 213 |
return
|
214 | 214 |
end
|
215 | 215 |
|
|
231 | 231 |
on_hit_sound = "default_place_node",
|
232 | 232 |
on_hit = function(self, pos, last_pos, _, _, hitter)
|
233 | 233 |
if minetest.get_node(last_pos).name ~= "air" then
|
234 | |
minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos))
|
|
234 |
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
235 | 235 |
return
|
236 | 236 |
end
|
237 | 237 |
|
|
260 | 260 |
on_hit_sound = "throwing_build_arrow",
|
261 | 261 |
on_hit = function(self, pos, last_pos, _, _, hitter)
|
262 | 262 |
if minetest.get_node(last_pos).name ~= "air" then
|
263 | |
minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos))
|
|
263 |
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
264 | 264 |
return
|
265 | 265 |
end
|
266 | 266 |
|