Fix crash due to usage of old mod_name variable which doesn't exist anymore
This commit is contained in:
parent
d83e114aea
commit
88114c6cf7
@ -125,14 +125,11 @@ function mobf_spawner_initialize_on_big_willow_abm(spawning_data)
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- name: mobf_spawn_on_big_willow_mapgen(mob_name,mob_transform,spawning_data,environment)
|
||||
-- name: mobf_spawn_on_big_willow_mapgen(spawning_data)
|
||||
--
|
||||
--! @brief find a place on big willow to spawn a mob on map generation
|
||||
--
|
||||
--! @param mob_name name of mob
|
||||
--! @param mob_transform secondary name of mob
|
||||
--! @param spawning_data spawning configuration
|
||||
--! @param environment environment of mob
|
||||
--! @param spawning_data all information required for spawning
|
||||
-------------------------------------------------------------------------------
|
||||
function mobf_spawner_initialize_big_willow_mapgen(spawning_data)
|
||||
minetest.log(LOGLEVEL_INFO,"MOBF:\tregistering willow mapgen spawn mapgen callback for mob "..spawning_data.name)
|
||||
|
@ -56,7 +56,7 @@ end
|
||||
-------------------------------------------------------------------------------
|
||||
function mobf_spawner_initialize_in_forrest_abm(spawning_data)
|
||||
minetest.log(LOGLEVEL_WARNING,"MOBF: using deprecated abm based spawn algorithm \"spawn_in_forrest\" most likely causing lag in server!\t Use spawn_in_forrest_mapgen instead!")
|
||||
minetest.log(LOGLEVEL_INFO,"MOBF:\tregistering forrest spawn abm callback for mob "..mob_name)
|
||||
minetest.log(LOGLEVEL_INFO,"MOBF:\tregistering forrest spawn abm callback for mob ".. spawning_data.name)
|
||||
|
||||
local media = nil
|
||||
|
||||
|
@ -177,7 +177,6 @@ function mobf_spawner_initialize_air_above_grass_mapgen(spawning_data)
|
||||
minp = minp,
|
||||
maxp = maxp,
|
||||
spawning_data = spawning_data,
|
||||
mob_name = mob_name,
|
||||
spawnfunc = mobf_spawner_air_above_grass_spawner_spawnfunc,
|
||||
maxtries = 5,
|
||||
func = spawning.divide_mapgen_entity_jobfunc,
|
||||
|
@ -298,7 +298,6 @@ function mobf_spawn_initialize_in_shallow_water_mapgen(spawning_data)
|
||||
minp = minp,
|
||||
maxp = maxp,
|
||||
spawning_data = spawning_data,
|
||||
mob_name = mob_name,
|
||||
spawnfunc = mobf_spawner_in_shallow_water_spawner_spawnfunc,
|
||||
maxtries = 15,
|
||||
func = spawning.divide_mapgen_entity_jobfunc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user