From 46d68ca483cc3a3228bae98c33402b6eae147708 Mon Sep 17 00:00:00 2001 From: hkc Date: Fri, 12 Jan 2024 19:29:53 +0300 Subject: [PATCH] safety check --- turtos/startup.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/turtos/startup.lua b/turtos/startup.lua index 64046ab..16380c6 100644 --- a/turtos/startup.lua +++ b/turtos/startup.lua @@ -1,3 +1,8 @@ +if not turtle then + printError("not a turtle") + return +end + _G._TOS_VER = "N/A" local tos_ver_fp = io.open("/.tos-ver", "r") if tos_ver_fp then