mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-07-05 09:50:24 +02:00
Remove useless timer condition when checking if hitting the hitter
This commit is contained in:
2
init.lua
2
init.lua
@ -37,7 +37,7 @@ local function arrow_step(self, dtime)
|
||||
local hit = function(pos, node, obj)
|
||||
if obj 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
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user