From 5d0d93db0a28afc2fdb2ae876984cdefd124672c Mon Sep 17 00:00:00 2001 From: William Goodspeed Date: Sun, 18 Aug 2024 16:35:13 +0000 Subject: [PATCH] Alias creeper heads to stalker heads This solves the issue of creeper heads in the old version not getting upgraded with newer VL reported in #4545. --- mods/ITEMS/mcl_heads/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_heads/init.lua b/mods/ITEMS/mcl_heads/init.lua index 5409f21c4..1407bac6c 100644 --- a/mods/ITEMS/mcl_heads/init.lua +++ b/mods/ITEMS/mcl_heads/init.lua @@ -272,6 +272,12 @@ mcl_heads.register_head{ range_factor = 0.5, } +-- Alias old creeper heads +minetest.register_alias("mcl_heads:creeper_wall", "mcl_heads:stalker_wall") +for i, d in pairs(mcl_heads.FLOOR_DEGREES) do + minetest.register_alias("mcl_heads:creeper"..d, "mcl_heads:stalker"..d) +end + -- Original Minecraft name: “Head” mcl_heads.register_head{ name = "steve",