diff --git a/itemcontroller.lua b/itemcontroller.lua index 099c60e..b5af9fc 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -203,6 +203,7 @@ local function updatePageRender(state, pages) state.monitor.clear() state._pageRender = pages[state.currentPage](state) + os.queueEvent("dummy_event") else state.changingPage = false end @@ -305,7 +306,6 @@ function CONTROLLER_STATE:itemTransaction(transact) unlock() end -os.queueEvent("dummy_event") while not CONTROLLER_STATE.exit do updatePageRender(CONTROLLER_STATE, PAGES) CONTROLLER_STATE._pageRender()