mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-12 12:43:15 +01:00
Change to use nil radius in within_limits(pos,radius) check
This commit is contained in:
parent
980d18b6d2
commit
d2523dcb02
@ -471,7 +471,7 @@ function mcl_mobs.register_arrow(name, def)
|
|||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
if not pos then return end
|
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_burning.extinguish(self.object)
|
||||||
mcl_util.remove_entity(self)
|
mcl_util.remove_entity(self)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user