mirror of
https://github.com/minetest-mods/throwing.git
synced 2024-11-10 12:30:32 +01:00
Remove useless timer condition when checking if hitting the hitter
This commit is contained in:
parent
15e57c0397
commit
5a38a386eb
2
init.lua
2
init.lua
|
@ -37,7 +37,7 @@ local function arrow_step(self, dtime)
|
||||||
local hit = function(pos, node, obj)
|
local hit = function(pos, node, obj)
|
||||||
if obj then
|
if obj then
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
if self.timer > 0.2 and obj:get_player_name() == self.player then -- Avoid hitting the hitter
|
if obj:get_player_name() == self.player then -- Avoid hitting the hitter
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user