Log inventory actions on battery holders (#106)

This commit is contained in:
1F616EMO~nya 2024-07-14 17:50:23 +08:00 committed by GitHub
parent 3eaa3c7bfb
commit b9f3e1bf54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -30,7 +30,7 @@ if not minetest.get_modpath("technic") then
holder_groups.not_in_creative_inventory = 1 holder_groups.not_in_creative_inventory = 1
end end
minetest.register_node("digtron:battery_holder", { local def = {
description = S("Digtron Battery Holder"), description = S("Digtron Battery Holder"),
_doc_items_longdesc = digtron.doc.battery_holder_longdesc, _doc_items_longdesc = digtron.doc.battery_holder_longdesc,
_doc_items_usagehelp = digtron.doc.battery_holder_usagehelp, _doc_items_usagehelp = digtron.doc.battery_holder_usagehelp,
@ -127,4 +127,8 @@ minetest.register_node("digtron:battery_holder", {
after_place_node = (function() if minetest.get_modpath("pipeworks") then return pipeworks.after_place end end)(), after_place_node = (function() if minetest.get_modpath("pipeworks") then return pipeworks.after_place end end)(),
after_dig_node = (function() if minetest.get_modpath("pipeworks")then return pipeworks.after_dig end end)() after_dig_node = (function() if minetest.get_modpath("pipeworks")then return pipeworks.after_dig end end)()
}) }
default.set_inventory_action_loggers(def, "digtron battery holder")
minetest.register_node("digtron:battery_holder", def)