dude im super fuckin dumb

This commit is contained in:
KadeDev 2021-03-09 12:33:24 -08:00
parent 99f6496541
commit f49909f03f
2 changed files with 5 additions and 7 deletions

View File

@ -18,13 +18,11 @@ class OutdatedSubState extends MusicBeatState
super.create();
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
add(bg);
var ver = "v" + Application.current.meta.get('version');
var txt:FlxText = new FlxText(0, 0, FlxG.width,
"Kade Engine is Outdated!\n"
+ ver
+ " is your current version while the most recent version is "
+ needVer
+ "! Press Space to go to the github or ESCAPE to ignore this!!",
+ MainMenuState.kadeEngineVer
+ " is your current version\nwhile the most recent version is " + needVer
+ "!\nPress Space to go to the github or ESCAPE to ignore this!!",
32);
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
txt.screenCenter();

View File

@ -283,9 +283,9 @@ class TitleState extends MusicBeatState
http.onData = function (data:String) {
if (MainMenuState.kadeEngineVer != data && !OutdatedSubState.leftState)
if (!MainMenuState.kadeEngineVer.contains(data.trim()) && !OutdatedSubState.leftState)
{
trace('outdated lmao! ' + data + ' != ' + MainMenuState.kadeEngineVer);
trace('outdated lmao! ' + data.trim() + ' != ' + MainMenuState.kadeEngineVer);
OutdatedSubState.needVer = data;
FlxG.switchState(new OutdatedSubState());
}