mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 04:11:24 +00:00
Fix wall craft registrations (#3004)
This commit is contained in:
parent
c4cf1a6004
commit
792bc6f6e5
1 changed files with 6 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue