fix crash (no longer allow blacklisted items)

This commit is contained in:
chmodsayshello 2023-06-21 12:11:04 +02:00
parent 5cc9038169
commit 9d1840f4ca
2 changed files with 2 additions and 1 deletions

@ -135,6 +135,7 @@ minetest.register_node("mcl_smithing_table:table", {
if
listname == "upgrade_item"
and string.find(stack:get_name(),"mcl_armor:") -- allow any armor piece to go in (in case the player wants to trim them)
and not mcl_armor_trims.blacklisted[stack:get_name()]
or listname == "mineral"
and mcl_smithing_table.is_smithing_mineral(stack:get_name())

@ -1,2 +1,2 @@
name = mcl_smithing_table
depends = mcl_colors, mcl_formspec
depends = mcl_colors, mcl_formspec, mcl_armor_trims