mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-24 11:31:09 +01:00
Stop infinite loop of arrows stuck in yourself punching you
This commit is contained in:
parent
5914b789a7
commit
7f5cf945ca
1 changed files with 1 additions and 0 deletions
|
@ -458,6 +458,7 @@ local function handle_entity_collision(self, entity_def, projectile_def, object)
|
|||
if type(allow_punching) == "function" then
|
||||
allow_punching = allow_punching(self, entity_def, projectile_def, object)
|
||||
end
|
||||
if self._in_player then allow_punching = false end
|
||||
|
||||
if not allow_punching then return end
|
||||
|
||||
|
|
Loading…
Reference in a new issue