mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-08 16:23:44 +01:00
Log inventory actions on battery holders (#106)
This commit is contained in:
parent
3eaa3c7bfb
commit
b9f3e1bf54
@ -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,
|
||||
@ -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_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)
|
||||
|
Loading…
Reference in New Issue
Block a user