forked from VoxeLibre/VoxeLibre
fix crash (no longer allow blacklisted items)
This commit is contained in:
parent
5cc9038169
commit
9d1840f4ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue