From 32ac2ffeb86eb377524a44f56ab3bf1ad2ef2804 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 21 Jul 2022 00:35:39 +0200 Subject: [PATCH] remove unused alias_mob function --- mods/ENTITIES/mcl_mobs/api.lua | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 98c4cd5ffe..d86c04e804 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4493,31 +4493,6 @@ function mcl_mobs:spawn_child(pos, mob_type) return child end - --- compatibility function for old entities to new modpack entities -function mcl_mobs:alias_mob(old_name, new_name) - - -- spawn egg - minetest.register_alias(old_name, new_name) - - -- entity - minetest.register_entity(":" .. old_name, { - - physical = false, - - on_step = function(self) - - if minetest.registered_entities[new_name] then - minetest.add_entity(self.object:get_pos(), new_name) - end - - self.object:remove() - end - }) - -end - - local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime