Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
upsilon | 059cc897af | |
upsilon | 1f88969175 |
8
init.lua
8
init.lua
|
@ -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
|
||||
|
@ -210,7 +210,7 @@ if get_setting("teleport_arrow") then
|
|||
on_hit_sound = "throwing_teleport_arrow",
|
||||
on_hit = function(self, _, last_pos, _, _, hitter)
|
||||
if minetest.get_node(last_pos).name ~= "air" then
|
||||
minetest.log("warning", S("[throwing] BUG: node at @1 was not air", last_pos))
|
||||
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -232,7 +232,7 @@ if get_setting("fire_arrow") then
|
|||
on_hit_sound = "default_place_node",
|
||||
on_hit = function(self, pos, last_pos, _, _, hitter)
|
||||
if minetest.get_node(last_pos).name ~= "air" then
|
||||
minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos))
|
||||
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -261,7 +261,7 @@ if get_setting("build_arrow") then
|
|||
on_hit_sound = "throwing_build_arrow",
|
||||
on_hit = function(self, pos, last_pos, _, _, hitter)
|
||||
if minetest.get_node(last_pos).name ~= "air" then
|
||||
minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos))
|
||||
minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air")
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -23,6 +23,3 @@ Teleport Arrow=
|
|||
Torch Arrow=
|
||||
Build Arrow=
|
||||
Drop Arrow=
|
||||
|
||||
## Warnings
|
||||
[throwing] BUG: node at @1 was not air=
|
||||
|
|
|
@ -23,6 +23,3 @@ Teleport Arrow=Flèche de téléportation
|
|||
Torch Arrow=Flèche-torche
|
||||
Build Arrow=Flèche de construction
|
||||
Drop Arrow=Flèche de livraison
|
||||
|
||||
## Warnings
|
||||
[throwing] BUG: node at @1 was not air=[throwing] BUG : le bloc à @1 n’était pas de l’air
|
||||
|
|
Loading…
Reference in New Issue