mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-24 16:20:19 +01:00
mobs_class made global (be careful anyone changing this)
This commit is contained in:
parent
b74e75ef8b
commit
1450b25ca4
5
api.lua
5
api.lua
@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20220930",
|
version = "20221015",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -113,7 +113,7 @@ local node_snow = "default:snow"
|
|||||||
|
|
||||||
mobs.fallback_node = minetest.registered_aliases["mapgen_dirt"] or "default:dirt"
|
mobs.fallback_node = minetest.registered_aliases["mapgen_dirt"] or "default:dirt"
|
||||||
|
|
||||||
local mob_class = {
|
mobs.mob_class = {
|
||||||
stepheight = 1.1,
|
stepheight = 1.1,
|
||||||
fly_in = "air",
|
fly_in = "air",
|
||||||
owner = "",
|
owner = "",
|
||||||
@ -184,6 +184,7 @@ local mob_class = {
|
|||||||
_cmi_is_mob = true
|
_cmi_is_mob = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local mob_class = mobs.mob_class -- Compatibility
|
||||||
local mob_class_meta = {__index = mob_class}
|
local mob_class_meta = {__index = mob_class}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user