From 017702ea0d4ef0a462b77880582820a671f525da Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 26 Dec 2023 12:52:39 -0400 Subject: [PATCH] fix(greenhouse): remove goro usage --- nature/greenhouse/init.lua | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/nature/greenhouse/init.lua b/nature/greenhouse/init.lua index d4fbbfa..0eabcb9 100644 --- a/nature/greenhouse/init.lua +++ b/nature/greenhouse/init.lua @@ -284,25 +284,22 @@ function Greenhouse:initUi() ansikit.clear(true) self:draw() - hilbish.goro(function() - while not done do - local c = read() - self:keybind('Ctrl-D', function() - done = true - end) - - if self.keybinds[c] then - self.keybinds[c](self) - else - self:input(c) - end - - ::continue:: - end - end) - while not done do - -- + local c = read() + self:keybind('Ctrl-Q', function() + done = true + end) + self:keybind('Ctrl-D', function() + done = true + end) + + if self.keybinds[c] then + self.keybinds[c](self) + else + self:input(c) + end + + ::continue:: end ansikit.showCursor() ansikit.screenMain()