mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-20 05:54:18 +02:00
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
|
if
|
||||||
listname == "upgrade_item"
|
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 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"
|
or listname == "mineral"
|
||||||
and mcl_smithing_table.is_smithing_mineral(stack:get_name())
|
and mcl_smithing_table.is_smithing_mineral(stack:get_name())
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
name = mcl_smithing_table
|
name = mcl_smithing_table
|
||||||
depends = mcl_colors, mcl_formspec
|
depends = mcl_colors, mcl_formspec, mcl_armor_trims
|
||||||
|
Loading…
Reference in New Issue
Block a user