Skip to content

Commit 9717ad0

Browse files
committed
gui: Hide circuit UI when circuit not connected
1 parent 2c618e5 commit 9717ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/gui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ local function render_on(parent, anchor)
140140
}.tags = { mode = "drop", action = "inventory" }
141141
end
142142

143-
if ENABLE_CIRCUIT then
143+
if ENABLE_CIRCUIT and circuit_connected then
144144
local circuit_content = parent.add{
145145
anchor = anchor,
146146
type = "frame",

0 commit comments

Comments
 (0)