mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
fix crash (no longer allow blacklisted items)
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in a new issue