Log furnace inventory actions (#3141)

This commit is contained in:
1F616EMO~nya 2024-07-27 20:41:16 +08:00 committed by GitHub
parent 77bbcee0cd
commit 9cb57ae5f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,12 @@ end
-- Node definitions -- Node definitions
-- --
minetest.register_node("default:furnace", { local function apply_logger(def)
default.set_inventory_action_loggers(def, "furnace")
return def
end
minetest.register_node("default:furnace", apply_logger({
description = S("Furnace"), description = S("Furnace"),
tiles = { tiles = {
"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_top.png", "default_furnace_bottom.png",
@ -383,9 +388,9 @@ minetest.register_node("default:furnace", {
allow_metadata_inventory_put = allow_metadata_inventory_put, allow_metadata_inventory_put = allow_metadata_inventory_put,
allow_metadata_inventory_move = allow_metadata_inventory_move, allow_metadata_inventory_move = allow_metadata_inventory_move,
allow_metadata_inventory_take = allow_metadata_inventory_take, allow_metadata_inventory_take = allow_metadata_inventory_take,
}) }))
minetest.register_node("default:furnace_active", { minetest.register_node("default:furnace_active", apply_logger({
description = S("Furnace"), description = S("Furnace"),
tiles = { tiles = {
"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_top.png", "default_furnace_bottom.png",
@ -419,7 +424,7 @@ minetest.register_node("default:furnace_active", {
allow_metadata_inventory_put = allow_metadata_inventory_put, allow_metadata_inventory_put = allow_metadata_inventory_put,
allow_metadata_inventory_move = allow_metadata_inventory_move, allow_metadata_inventory_move = allow_metadata_inventory_move,
allow_metadata_inventory_take = allow_metadata_inventory_take, allow_metadata_inventory_take = allow_metadata_inventory_take,
}) }))
minetest.register_craft({ minetest.register_craft({
output = "default:furnace", output = "default:furnace",