Lots of whitespace and debug log fixes
This commit is contained in:
parent
d13fc429ec
commit
e058deb494
@ -109,7 +109,7 @@ dofile (mobf_modpath .. "/mgen_pathbased/main.lua")
|
|||||||
dofile (mobf_modpath .. "/mgen_flee/main_flee.lua")
|
dofile (mobf_modpath .. "/mgen_flee/main_flee.lua")
|
||||||
dofile (mobf_modpath .. "/mov_gen_none.lua")
|
dofile (mobf_modpath .. "/mov_gen_none.lua")
|
||||||
|
|
||||||
mobf_version = "2.9.0"
|
mobf_version = "2.2.90"
|
||||||
|
|
||||||
--! @brief define tools used for more than one mob
|
--! @brief define tools used for more than one mob
|
||||||
function mobf_init_basic_tools()
|
function mobf_init_basic_tools()
|
||||||
|
@ -277,13 +277,13 @@ function mobf.activate_handler(self,staticdata)
|
|||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
|
|
||||||
if pos == nil then
|
if pos == nil then
|
||||||
minetest.log(LOGLEVEL_ERROR,"MOBF: mob at nil pos!")
|
mobf_bug_warning(LOGLEVEL_ERROR,"MOBF: mob at nil pos!")
|
||||||
end
|
end
|
||||||
|
|
||||||
local current_node = minetest.get_node(pos)
|
local current_node = minetest.get_node(pos)
|
||||||
|
|
||||||
if current_node == nil then
|
if current_node == nil then
|
||||||
minetest.log(LOGLEVEL_ERROR,
|
mobf_bug_warning(LOGLEVEL_ERROR,
|
||||||
"MOBF: trying to activate mob in nil node! removing")
|
"MOBF: trying to activate mob in nil node! removing")
|
||||||
|
|
||||||
spawning.remove_uninitialized(self,staticdata)
|
spawning.remove_uninitialized(self,staticdata)
|
||||||
@ -314,7 +314,7 @@ function mobf.activate_handler(self,staticdata)
|
|||||||
spawner = self.dynamic_data.spawning.spawner
|
spawner = self.dynamic_data.spawning.spawner
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log(LOGLEVEL_WARNING,
|
mobf_bug_warning(LOGLEVEL_WARNING,
|
||||||
"MOBF: trying to activate mob \"" ..self.data.name ..
|
"MOBF: trying to activate mob \"" ..self.data.name ..
|
||||||
" at " .. printpos(pos) ..
|
" at " .. printpos(pos) ..
|
||||||
"\" within something else!" ..
|
"\" within something else!" ..
|
||||||
@ -325,12 +325,12 @@ function mobf.activate_handler(self,staticdata)
|
|||||||
if luaentity ~= nil then
|
if luaentity ~= nil then
|
||||||
if luaentity.data ~= nil and
|
if luaentity.data ~= nil and
|
||||||
luaentity.data.name ~= nil then
|
luaentity.data.name ~= nil then
|
||||||
print(i .. " " .. luaentity.data.name .. printpos(objectlist[i]:getpos()))
|
dbg_mobf.mobf_core_helper_lvl3(i .. " " .. luaentity.data.name .. printpos(objectlist[i]:getpos()))
|
||||||
else
|
else
|
||||||
print(i .. " " .. dump(luaentity))
|
dbg_mobf.mobf_core_helper_lvl3(i .. " " .. dump(luaentity))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
print(i .. " " .. tostring(objectlist[i]) .. printpos(objectlist[i]:getpos()))
|
dbg_mobf.mobf_core_helper_lvl3(i .. " " .. tostring(objectlist[i]) .. printpos(objectlist[i]:getpos()))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
spawning.remove_uninitialized(self,staticdata)
|
spawning.remove_uninitialized(self,staticdata)
|
||||||
|
@ -348,7 +348,7 @@ function mobf_spawner_around(mob_name,pos,range)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- name: mobf_line_of_sightX(pos1,pos2)
|
-- name: mobf_line_of_sight(pos1,pos2)
|
||||||
--
|
--
|
||||||
--! @brief is there a line of sight between two specified positions
|
--! @brief is there a line of sight between two specified positions
|
||||||
--
|
--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user