mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
Merge (latest mcl_mobs/api.lua)
This commit is contained in:
commit
61a6929c40
@ -1030,7 +1030,7 @@ local node_ok = function(pos, fallback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function get_light(pos, tod)
|
local function get_light(pos, tod)
|
||||||
if math.abs(pos.x) < 31000 and math.abs(pos.y) < 31000 and math.abs(pos.z) < 31000 then
|
if minetest.get_node_or_nil(pos) then
|
||||||
local lightfunc = minetest.get_natural_light or minetest.get_node_light
|
local lightfunc = minetest.get_natural_light or minetest.get_node_light
|
||||||
return lightfunc(pos, tod)
|
return lightfunc(pos, tod)
|
||||||
else
|
else
|
||||||
@ -3454,8 +3454,8 @@ end
|
|||||||
-- main mob function
|
-- main mob function
|
||||||
local mob_step = function(self, dtime)
|
local mob_step = function(self, dtime)
|
||||||
|
|
||||||
if not self.fire_resistant and self._mcl_burning_burn_time and self._mcl_burning_burn_time > 0 then
|
if not self.fire_resistant then
|
||||||
mcl_burning.tick(self.object, dtime)
|
mcl_burning.tick(self.object, dtime, self)
|
||||||
end
|
end
|
||||||
|
|
||||||
if use_cmi then
|
if use_cmi then
|
||||||
|
Loading…
Reference in New Issue
Block a user