From a382ad4efbc783866e342a2305128547bb831e3a Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Tue, 1 Nov 2016 16:29:35 +0100 Subject: [PATCH] os.pullEvent fixed --- src/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/init.lua b/src/init.lua index d30e2d5..f1ac807 100644 --- a/src/init.lua +++ b/src/init.lua @@ -1,5 +1,6 @@ -local old = os.pullEvent +os.oldPullEvent = os.pullEvent os.pullEvent = os.pullEventRaw + local function crash(err) if not sPhone then sPhone = { @@ -165,9 +166,6 @@ end local tArgs = {...} -os.oldPullEvent = os.pullEvent -os.pullEvent = os.pullEventRaw - local argData = { ["-u"] = false, ["-s"] = false, @@ -191,7 +189,7 @@ if argData["-s"] then runningOnStartup = true end -os.pullEvent = old +os.pullEvent = os.oldPullEvent local ok, err = pcall(function() setfenv(loadstring(script),getfenv())() end)