mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-19 21:33:43 +01:00
restoring "emergency abort" functionality to auto-controller
This commit is contained in:
parent
3bfabe8981
commit
51b76e193d
@ -12,7 +12,7 @@ local get_node_image = function(pos, node)
|
|||||||
node_image.paramtype2 = node_def.paramtype2
|
node_image.paramtype2 = node_def.paramtype2
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
node_image.meta = meta:to_table()
|
node_image.meta = meta:to_table()
|
||||||
if node_image.meta ~= nil then
|
if node_image.meta ~= nil and node_def._digtron_formspec ~= nil then
|
||||||
node_image.meta.fields.formspec = node_def._digtron_formspec -- causes formspec to be automatically upgraded whenever Digtron moves
|
node_image.meta.fields.formspec = node_def._digtron_formspec -- causes formspec to be automatically upgraded whenever Digtron moves
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -172,7 +172,8 @@ minetest.register_node("digtron:auto_controller", {
|
|||||||
description = S("Digtron Automatic Control Module"),
|
description = S("Digtron Automatic Control Module"),
|
||||||
_doc_items_longdesc = digtron.doc.auto_controller_longdesc,
|
_doc_items_longdesc = digtron.doc.auto_controller_longdesc,
|
||||||
_doc_items_usagehelp = digtron.doc.auto_controller_usagehelp,
|
_doc_items_usagehelp = digtron.doc.auto_controller_usagehelp,
|
||||||
_digtron_formspec = auto_formspec,
|
--Don't set a _digtron_formspec for this node_def.
|
||||||
|
--Auto-controller has special formspec handling, while active it has no formspec and right-clicking interrupts it.
|
||||||
groups = {cracky = 3, oddly_breakable_by_hand = 3, digtron = 1},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, digtron = 1},
|
||||||
drop = "digtron:auto_controller",
|
drop = "digtron:auto_controller",
|
||||||
sounds = digtron.metal_sounds,
|
sounds = digtron.metal_sounds,
|
||||||
|
Loading…
Reference in New Issue
Block a user