Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log inventory actions on battery holders #106

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions nodes/node_battery_holder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if not minetest.get_modpath("technic") then
holder_groups.not_in_creative_inventory = 1
end

minetest.register_node("digtron:battery_holder", {
local def = {
description = S("Digtron Battery Holder"),
_doc_items_longdesc = digtron.doc.battery_holder_longdesc,
_doc_items_usagehelp = digtron.doc.battery_holder_usagehelp,
Expand Down Expand Up @@ -123,4 +123,8 @@ minetest.register_node("digtron:battery_holder", {

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)()
})
}

default.set_inventory_action_loggers(def, "digtron battery holder")

minetest.register_node("digtron:battery_holder", def)