techage support for controller (#74)

This commit is contained in:
Niklp 2022-11-20 13:20:00 +01:00 committed by GitHub
parent 53820e2091
commit 3b4cc9c6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

@ -25,5 +25,6 @@ read_globals = {
"screwdriver",
"intllib",
"digilines",
"mesecon"
"mesecon",
"techage"
}

@ -47,6 +47,7 @@ local default_loaded = core.get_modpath("default") and default
local mcl_loaded = core.get_modpath("mcl_core") and mcl_core
local pipeworks_loaded = core.get_modpath("pipeworks") and pipeworks
local digilines_loaded = core.get_modpath("digilines") and digilines
local techage_loaded = core.get_modpath("techage") and techage
local function controller_formspec(pos)
local formspec =
@ -500,6 +501,14 @@ local function register_controller()
end
core.register_node("drawers:controller", def)
if techage_loaded then
techage.register_node({"drawers:controller"}, {
on_push_item = function(pos, in_dir, stack)
return controller_insert_to_drawers(pos, stack)
end
})
end
end
-- register drawer controller

@ -1,4 +1,4 @@
name = drawers
description = Storage Drawers - A Mod adding simple storages for items and blocks, showing the item's inventory image in the front.
optional_depends = default, mcl_core, screwdriver, pipeworks, intllib, moreores, digilines, mesecons_mvps
optional_depends = default, mcl_core, screwdriver, pipeworks, intllib, moreores, digilines, mesecons_mvps, techage
min_minetest_version = 5.0