mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 08:37:30 +01:00
Change to use nil radius in within_limits(pos,radius) check
This commit is contained in:
parent
88cd54a03b
commit
a2167e7dfc
@ -471,7 +471,7 @@ function mcl_mobs.register_arrow(name, def)
|
||||
local pos = self.object:get_pos()
|
||||
if not pos then return end
|
||||
|
||||
if self.switch == 0 or self.timer > self._lifetime or not within_limits(pos, 0) then
|
||||
if self.switch == 0 or self.timer > self._lifetime or not within_limits(pos) then
|
||||
mcl_burning.extinguish(self.object)
|
||||
mcl_util.remove_entity(self)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user