sync upstream master of https://notabug.org/TenPlus1/mobs_redo into main
* add mtobjid mod to optional dependencies, stop mob count going below 0
This commit is contained in:
commit
8b074b0602
4
api.lua
4
api.lua
@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20230527",
|
version = "20230606",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -926,7 +926,7 @@ local function remove_mob(self, decrease)
|
|||||||
|
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
|
||||||
if decrease and active_limit > 0 then
|
if decrease and active_limit > 1 then
|
||||||
active_mobs = active_mobs - 1
|
active_mobs = active_mobs - 1
|
||||||
|
|
||||||
if active_mobs < 0 then
|
if active_mobs < 0 then
|
||||||
|
@ -9,3 +9,4 @@ cmi?
|
|||||||
toolranks?
|
toolranks?
|
||||||
pathfinder?
|
pathfinder?
|
||||||
player_api?
|
player_api?
|
||||||
|
mtobjid?
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = mobs
|
name = mobs
|
||||||
depends =default
|
depends =default
|
||||||
optional_depends = tnt, player_api, dye, farming, invisibility, intllib, lucky_block, cmi, toolranks, pathfinder
|
optional_depends = tnt, player_api, dye, farming, invisibility, intllib, lucky_block, cmi, toolranks, pathfinder, mtobjid
|
||||||
description = MOBS api for mobs to add animals or monsters etc
|
description = MOBS api for mobs to add animals or monsters etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user