mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-20 11:20:31 +01:00
some style
This commit is contained in:
parent
a1f6ea5128
commit
78a9faf14c
@ -38,16 +38,17 @@ local function make_reactor_formspec(meta)
|
|||||||
"listring[]"..
|
"listring[]"..
|
||||||
"button[5.5,1.5;2,1;start;Start]"..
|
"button[5.5,1.5;2,1;start;Start]"..
|
||||||
"checkbox[5.5,2.5;autostart;automatic Start;"..meta:get_string("autostart").."]"
|
"checkbox[5.5,2.5;autostart;automatic Start;"..meta:get_string("autostart").."]"
|
||||||
if digiline_remote_path then
|
if not digiline_remote_path then
|
||||||
local digiline_enabled = meta:get_string("enable_digiline")
|
return f
|
||||||
f = f.."checkbox[0.5,2.8;enable_digiline;Enable Digiline;"..digiline_enabled.."]"
|
|
||||||
if digiline_enabled == "true" then
|
|
||||||
f = f..
|
|
||||||
"button_exit[4.6,3.69;2,1;save;Save]"..
|
|
||||||
"field[1,4;4,1;remote_channel;Digiline Remote Channel;${remote_channel}]"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return f
|
local digiline_enabled = meta:get_string("enable_digiline")
|
||||||
|
f = f.."checkbox[0.5,2.8;enable_digiline;Enable Digiline;"..digiline_enabled.."]"
|
||||||
|
if digiline_enabled ~= "true" then
|
||||||
|
return f
|
||||||
|
end
|
||||||
|
return f..
|
||||||
|
"button_exit[4.6,3.69;2,1;save;Save]"..
|
||||||
|
"field[1,4;4,1;remote_channel;Digiline Remote Channel;${remote_channel}]"
|
||||||
end
|
end
|
||||||
|
|
||||||
local SS_OFF = 0
|
local SS_OFF = 0
|
||||||
@ -211,7 +212,7 @@ end
|
|||||||
|
|
||||||
local function melt_down_reactor(pos)
|
local function melt_down_reactor(pos)
|
||||||
minetest.log("action", "A reactor melted down at "..minetest.pos_to_string(pos))
|
minetest.log("action", "A reactor melted down at "..minetest.pos_to_string(pos))
|
||||||
minetest.set_node(pos, {name="technic:corium_source"})
|
minetest.set_node(pos, {name = "technic:corium_source"})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user