Add necessary redrawing
This commit is contained in:
parent
8461e6dd0d
commit
108ca15230
5
lib.lua
5
lib.lua
@ -87,6 +87,9 @@ local function serve(fn, node_type)
|
|||||||
init_screen(main_screen, colors.white, colors.black)
|
init_screen(main_screen, colors.white, colors.black)
|
||||||
term.redirect(main_screen)
|
term.redirect(main_screen)
|
||||||
|
|
||||||
|
titlebar.redraw()
|
||||||
|
main_screen.redraw()
|
||||||
|
|
||||||
rednet.host(protocol .. "/" .. node_type, node_type .. "/" .. tostring(os.getComputerID()))
|
rednet.host(protocol .. "/" .. node_type, node_type .. "/" .. tostring(os.getComputerID()))
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
@ -117,6 +120,8 @@ local function serve(fn, node_type)
|
|||||||
print("Request Invalid")
|
print("Request Invalid")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
main_screen.redraw()
|
||||||
|
|
||||||
rednet.send(sender, response, protocol)
|
rednet.send(sender, response, protocol)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user