From 89afec17b16efc37bb989976498b782cf1145061 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 18 Feb 2020 16:13:37 +0100 Subject: [PATCH] Armor stand: Remove legacy entity --- mods/ITEMS/mcl_armor_stand/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/ITEMS/mcl_armor_stand/init.lua b/mods/ITEMS/mcl_armor_stand/init.lua index 5ebb8d621..72436330a 100644 --- a/mods/ITEMS/mcl_armor_stand/init.lua +++ b/mods/ITEMS/mcl_armor_stand/init.lua @@ -299,4 +299,13 @@ minetest.register_craft({ } }) + +-- Legacy handling minetest.register_alias("3d_armor_stand:armor_stand", "mcl_armor_stand:armor_stand") +minetest.register_entity(":3d_armor_stand:armor_entity", { + on_activate = function(self) + minetest.log("action", "[mcl_armor_stand] Removing legacy entity: 3d_armor_stand:armor_entity") + self.object:remove() + end, + static_save = false, +})