Fix smithing table not dropping contents when dug
This commit is contained in:
parent
1d7442cc5b
commit
88e83439a5
@ -151,6 +151,8 @@ minetest.register_node("mcl_smithing_table:table", {
|
|||||||
inv:set_size("upgraded_item", 1)
|
inv:set_size("upgraded_item", 1)
|
||||||
end,
|
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)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
local r = 0
|
local r = 0
|
||||||
if listname == "upgrade_item" then
|
if listname == "upgrade_item" then
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
name = mcl_smithing_table
|
name = mcl_smithing_table
|
||||||
depends = mcl_colors, mcl_formspec, mcl_armor
|
depends = mcl_colors, mcl_formspec, mcl_armor, mcl_util
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name = mcl_stonecutter
|
name = mcl_stonecutter
|
||||||
author = PrairieWind
|
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.
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user