Fix smithing table not dropping contents when dug

This commit is contained in:
cora 2023-10-18 16:49:12 +02:00 committed by ryvnf
parent 1d7442cc5b
commit 88e83439a5
3 changed files with 4 additions and 2 deletions

View File

@ -151,6 +151,8 @@ minetest.register_node("mcl_smithing_table:table", {
inv:set_size("upgraded_item", 1)
end,
after_dig_node = mcl_util.drop_items_from_meta_container({"upgrade_item", "mineral", "template"}),
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local r = 0
if listname == "upgrade_item" then

View File

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

View File

@ -1,4 +1,4 @@
name = mcl_stonecutter
author = PrairieWind
description = This mod adds a stonecutter, which is used to cut stone like materials, and used as the jobsite for the Stone Mason Villager.
depends = mcl_sounds
depends = mcl_sounds, mcl_util