mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-12 12:43:15 +01:00
Stop infinite loop of arrows stuck in yourself punching you
This commit is contained in:
parent
e1bd9b46d0
commit
5d371e55a1
@ -458,6 +458,7 @@ local function handle_entity_collision(self, entity_def, projectile_def, object)
|
|||||||
if type(allow_punching) == "function" then
|
if type(allow_punching) == "function" then
|
||||||
allow_punching = allow_punching(self, entity_def, projectile_def, object)
|
allow_punching = allow_punching(self, entity_def, projectile_def, object)
|
||||||
end
|
end
|
||||||
|
if self._in_player then allow_punching = false end
|
||||||
|
|
||||||
if not allow_punching then return end
|
if not allow_punching then return end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user