mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
Fix wall craft registrations (#3004)
This commit is contained in:
parent
c4cf1a6004
commit
792bc6f6e5
@ -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…
Reference in New Issue
Block a user