mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
Fix crash when hit with an arrow that is not piercing
This commit is contained in:
parent
d8658902c4
commit
8a56008835
@ -268,7 +268,7 @@ local arrow_entity = {
|
||||
local hook = item_def and item_def._on_collide_with_entity
|
||||
if hook then hook(self, pos, obj) end
|
||||
|
||||
if self._piercing > 0 then
|
||||
if (self._piercing or 0) > 0 then
|
||||
self._piercing = self._piercing - 1
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user