Codebase list minetest-mod-throwing-arrows / b595872b-a555-478c-bc88-7f5801505d40/upstream
Import upstream version 1.1+git20201103.1.059cc89 Debian Janitor 2 years ago
3 changed file(s) with 4 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
107107 if time_from_last_punch >= (caps.full_punch_interval or 1) then
108108 last_punch_times[hitter_name][player_name] = os.time()
109109 end
110 object:punch(hitter, time_from_last_punch, caps)
110 object:punch(hitter, time_from_last_punch, caps, nil)
111111 end
112112
113113 if get_setting("arrow") then
209209 on_hit_sound = "throwing_teleport_arrow",
210210 on_hit = function(self, _, last_pos, _, _, hitter)
211211 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")
213213 return
214214 end
215215
231231 on_hit_sound = "default_place_node",
232232 on_hit = function(self, pos, last_pos, _, _, hitter)
233233 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")
235235 return
236236 end
237237
260260 on_hit_sound = "throwing_build_arrow",
261261 on_hit = function(self, pos, last_pos, _, _, hitter)
262262 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")
264264 return
265265 end
266266
2222 Torch Arrow=
2323 Build Arrow=
2424 Drop Arrow=
25
26 ## Warnings
27 [throwing] BUG: node at @1 was not air=
2222 Torch Arrow=Flèche-torche
2323 Build Arrow=Flèche de construction
2424 Drop Arrow=Flèche de livraison
25
26 ## Warnings
27 [throwing] BUG: node at @1 was not air=[throwing] BUG : le bloc à @1 n’était pas de l’air