add ":" to beginning of entity registration
This commit is contained in:
parent
af7eafc22c
commit
b1ad4451a7
6
api.lua
6
api.lua
@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20230805",
|
version = "20230807",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"] or "mcl_core:snow",
|
node_snow = minetest.registered_aliases["mapgen_snow"] or "mcl_core:snow",
|
||||||
@ -3604,7 +3604,7 @@ function mobs:register_mob(name, def)
|
|||||||
collisionbox[5] = collisionbox[2] + 0.99
|
collisionbox[5] = collisionbox[2] + 0.99
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_entity(name, setmetatable({
|
minetest.register_entity(":" .. name, setmetatable({
|
||||||
|
|
||||||
stepheight = def.stepheight,
|
stepheight = def.stepheight,
|
||||||
name = name,
|
name = name,
|
||||||
@ -4177,7 +4177,7 @@ function mobs:register_arrow(name, def)
|
|||||||
|
|
||||||
if not name or not def then return end -- errorcheck
|
if not name or not def then return end -- errorcheck
|
||||||
|
|
||||||
minetest.register_entity(name, {
|
minetest.register_entity(":" .. name, {
|
||||||
|
|
||||||
physical = def.physical or false,
|
physical = def.physical or false,
|
||||||
collide_with_objects = def.collide_with_objects or false,
|
collide_with_objects = def.collide_with_objects or false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user