summaryrefslogtreecommitdiff
path: root/bee.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-04-15 15:23:37 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-04-15 15:23:37 +0100
commit06a3483ca24ca8a14af01fcf21356972f3d83418 (patch)
tree9a5409c7508f90cbbe97f4bbb7d47092564f657a /bee.lua
parent654c54075a9304333f4636abaa58d0eb8c35b78a (diff)
Added compatibility with mobs already spawned in world
Diffstat (limited to 'bee.lua')
-rw-r--r--bee.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/bee.lua b/bee.lua
index 039765e..ee4e99e 100644
--- a/bee.lua
+++ b/bee.lua
@@ -43,7 +43,8 @@ mobs:register_spawn("mobs_animal:bee", {"group:flower"}, 20, 10, 9000, 1, 31000,
mobs:register_egg("mobs_animal:bee", "Bee", "mobs_bee_inv.png", 0)
-minetest.register_alias("mobs:bee", "mobs_animal:bee")
+-- compatibility
+mobs:alias_mob("mobs:bee", "mobs_animal:bee")
-- honey
minetest.register_craftitem(":mobs:honey", {