Added compatibility with mobs already spawned in world
This commit is contained in:
parent
e590f637b2
commit
9b608fac38
3
npc.lua
3
npc.lua
|
@ -113,4 +113,5 @@ mobs:register_mob("mobs_npc:npc", {
|
||||||
|
|
||||||
mobs:register_egg("mobs_npc:npc", "Npc", "default_brick.png", 1)
|
mobs:register_egg("mobs_npc:npc", "Npc", "default_brick.png", 1)
|
||||||
|
|
||||||
minetest.register_alias("mobs:npc", "mobs_npc:npc")
|
-- compatibility
|
||||||
|
mobs:alias_mob("mobs:npc", "mobs_npc:npc")
|
||||||
|
|
|
@ -349,4 +349,5 @@ end
|
||||||
|
|
||||||
mobs:register_egg("mobs_npc:trader", "Trader", "default_sandstone.png", 1)
|
mobs:register_egg("mobs_npc:trader", "Trader", "default_sandstone.png", 1)
|
||||||
|
|
||||||
minetest.register_alias("mobs:trader", "mobs_npc:trader")
|
-- compatibility
|
||||||
|
mobs:alias_mob("mobs:trader", "mobs_npc:trader")
|
||||||
|
|
Loading…
Reference in New Issue