mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-24 07:33:44 +01:00
techage support for controller (#74)
This commit is contained in:
parent
53820e2091
commit
3b4cc9c6c7
@ -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
|
||||
|
2
mod.conf
2
mod.conf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user