add ":" to beginning of entity registration, but will possible break compatibility
* this its explained at https://notabug.org/TenPlus1/mobs_redo/issues/154 so next commit will add a workaround that manages both cases * Merge branch 'master' of https://notabug.org/TenPlus1/mobs_redo into main
This commit is contained in:
commit
a89c912829
6
api.lua
6
api.lua
@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20230805",
|
||||
version = "20230807",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||
node_ice = "default:ice",
|
||||
@ -3665,7 +3665,7 @@ function mobs:register_mob(name, def)
|
||||
collisionbox[5] = collisionbox[2] + 0.99
|
||||
end
|
||||
|
||||
minetest.register_entity(name, setmetatable({
|
||||
minetest.register_entity(":" .. name, setmetatable({
|
||||
|
||||
stepheight = def.stepheight,
|
||||
name = name,
|
||||
@ -4238,7 +4238,7 @@ function mobs:register_arrow(name, def)
|
||||
|
||||
if not name or not def then return end -- errorcheck
|
||||
|
||||
minetest.register_entity(name, {
|
||||
minetest.register_entity(":" .. name, {
|
||||
|
||||
physical = def.physical or false,
|
||||
collide_with_objects = def.collide_with_objects or false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user