From 792bc6f6e5946429365c561b6571e8760c57e768 Mon Sep 17 00:00:00 2001 From: Alexander Chibrikin Date: Fri, 2 Dec 2022 21:54:46 +0300 Subject: [PATCH] Fix wall craft registrations (#3004) --- mods/walls/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/walls/init.lua b/mods/walls/init.lua index b2a163fc..120f65fa 100644 --- a/mods/walls/init.lua +++ b/mods/walls/init.lua @@ -45,6 +45,12 @@ walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wa }) -- crafting recipe + -- HACK: + -- Walls have no crafts, when register new wall via API from another mod, but in the same namespace (`walls`). + -- So we should remove `":"` at the beginning of the name. + if wall_name:sub(1, 1) == ":" then + wall_name = wall_name:sub(2) + end minetest.register_craft({ output = wall_name .. " 6", recipe = {