mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-01 07:50:23 +02:00
add mtobjid mod to optional dependencies, stop mob count going below 0
This commit is contained in:
4
api.lua
4
api.lua
@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20230527",
|
||||
version = "20230606",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||
}
|
||||
@ -870,7 +870,7 @@ local function remove_mob(self, decrease)
|
||||
|
||||
self.object:remove()
|
||||
|
||||
if decrease and active_limit > 0 then
|
||||
if decrease and active_limit > 1 then
|
||||
active_mobs = active_mobs - 1
|
||||
end
|
||||
--print("-- active mobs: " .. active_mobs .. " / " .. active_limit)
|
||||
|
Reference in New Issue
Block a user