remove updater

This commit is contained in:
Luna 2024-01-31 09:39:06 +01:00
parent 5b3255ebdf
commit 1ae0e1c14d
2 changed files with 0 additions and 36 deletions

View File

@ -1,2 +0,0 @@
simfphys.LFS.VERSION = 999

View File

@ -2,9 +2,6 @@
simfphys = istable( simfphys ) and simfphys or {}
simfphys.LFS = istable( simfphys.LFS ) and simfphys.LFS or {}
simfphys.LFS.VERSION = 323
simfphys.LFS.VERSION_TYPE = ".GIT"
local KEYS = {}
function simfphys.LFS:AddKey(name, class, name_menu, default, cmd, IN_KEY)
@ -19,33 +16,6 @@ function simfphys.LFS:AddKey(name, class, name_menu, default, cmd, IN_KEY)
table.insert( KEYS, Key )
end
function simfphys.LFS.GetVersion()
return simfphys.LFS.VERSION
end
function simfphys.LFS.CheckUpdates()
http.Fetch("https://raw.githubusercontent.com/Blu-x92/LunasFlightSchool/master/lua/autorun/lfs_basescript.lua", function(contents,size)
local LatestVersion = tonumber( string.match( string.match( contents, "simfphys.LFS.VERSION%s=%s%d+" ) , "%d+" ) ) or 0
if LatestVersion == 0 then
print("[LFS] latest version could not be detected, You have Version: "..simfphys.LFS.GetVersion())
else
if simfphys.LFS.GetVersion() >= LatestVersion then
print("[LFS] is up to date, Version: "..simfphys.LFS.GetVersion())
else
print("[LFS] a newer version is available! Version: "..LatestVersion..", You have Version: "..simfphys.LFS.GetVersion())
print("[LFS] get the latest version at https://github.com/Blu-x92/LunasFlightSchool")
if CLIENT then
timer.Simple(18, function()
chat.AddText( Color( 255, 0, 0 ), "[LFS] a newer version is available!" )
end)
end
end
end
end)
end
-- this is for addons that do some hackery to fix pod=>vehicle detection
hook.Add( "OnEntityCreated", "!!lfs_fix_bullshit", function( ent )
timer.Simple(1, function()
@ -66,10 +36,6 @@ hook.Add( "LVS:Initialize", "[LFS] - Initialize", function()
simfphys.LFS.IgnoreNPCs = LVS.IgnoreNPCs
simfphys.LFS.IgnorePlayers = LVS.IgnorePlayers
timer.Simple(20, function()
simfphys.LFS.CheckUpdates()
end)
for _, v in pairs( KEYS ) do
LVS:AddKey( v.name, v.category, v.name_menu, v.cmd, v.default )
end