1
0
Fork 0

Fix some warnings

This commit is contained in:
cora 2022-11-11 00:30:52 +01:00
parent 19d6d43b39
commit faa38ffab8
5 changed files with 6 additions and 6 deletions

View File

@ -50,11 +50,6 @@ if minetest.settings:get_bool("only_peaceful_mobs", false) then
end) end)
end end
-- default nodes
local node_ice = "mcl_core:ice"
local node_snowblock = "mcl_core:snowblock"
local node_snow = "mcl_core:snow"
minetest.register_chatcommand("clearmobs",{ minetest.register_chatcommand("clearmobs",{
privs={maphack=true}, privs={maphack=true},
params = "<all>|<nametagged>|<range>", params = "<all>|<nametagged>|<range>",

View File

@ -6,7 +6,6 @@ local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false
local show_health = false local show_health = false
-- pathfinding settings -- pathfinding settings
local enable_pathfinding = true
local stuck_timeout = 3 -- how long before mob gets stuck in place and starts searching local stuck_timeout = 3 -- how long before mob gets stuck in place and starts searching
local stuck_path_timeout = 10 -- how long will mob follow path before giving up local stuck_path_timeout = 10 -- how long will mob follow path before giving up

View File

@ -4,6 +4,10 @@ local DEFAULT_FALL_SPEED = -9.81*1.5
local FLOP_HEIGHT = 6 local FLOP_HEIGHT = 6
local FLOP_HOR_SPEED = 1.5 local FLOP_HOR_SPEED = 1.5
local PATHFINDING = "gowp" local PATHFINDING = "gowp"
local node_ice = "mcl_core:ice"
local node_snowblock = "mcl_core:snowblock"
local node_snow = "mcl_core:snow"
local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false

View File

@ -3,6 +3,7 @@ local mob_class = mcl_mobs.mob_class
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_villager",false) local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_villager",false)
local PATHFINDING = "gowp" local PATHFINDING = "gowp"
local enable_pathfinding = true
local LOG_MODULE = "[Mobs]" local LOG_MODULE = "[Mobs]"
local function mcl_log (message) local function mcl_log (message)

View File

@ -31,6 +31,7 @@ local dbg_spawn_succ = 0
local dbg_spawn_counts = {} local dbg_spawn_counts = {}
-- range for mob count -- range for mob count
local aoc_range = 136 local aoc_range = 136
local remove_far = true
local mob_cap = { local mob_cap = {
monster = tonumber(minetest.settings:get("mcl_mob_cap_monster")) or 70, monster = tonumber(minetest.settings:get("mcl_mob_cap_monster")) or 70,