rename var

This commit is contained in:
TenPlus1 2022-01-16 07:44:53 +00:00
parent b756aa50f5
commit f01e8a61d0
1 changed files with 6 additions and 6 deletions

12
api.lua
View File

@ -1002,19 +1002,19 @@ end
-- Returns true is node can deal damage to self
function mobs:is_node_dangerous(mob_obj, nodename)
function mobs:is_node_dangerous(mob_object, nodename)
if mob_obj.water_damage > 0
if mob_object.water_damage > 0
and minetest.get_item_group(nodename, "water") ~= 0 then
return true
end
if mob_obj.lava_damage > 0
if mob_object.lava_damage > 0
and minetest.get_item_group(nodename, "lava") ~= 0 then
return true
end
if mob_obj.fire_damage > 0
if mob_object.fire_damage > 0
and minetest.get_item_group(nodename, "fire") ~= 0 then
return true
end
@ -1026,8 +1026,8 @@ function mobs:is_node_dangerous(mob_obj, nodename)
return false
end
local function is_node_dangerous(mob_obj, nodename)
return mobs:is_node_dangerous(mob_obj, nodename)
local function is_node_dangerous(mob_object, nodename)
return mobs:is_node_dangerous(mob_object, nodename)
end