Small fix

This commit is contained in:
NeeEoo
2023-03-22 02:11:15 +01:00
parent 2a9cab6535
commit 6aec2e024b
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
2654
2655
+1 -3
View File
@@ -1012,9 +1012,7 @@ class PlayState extends MusicBeatState
FlxG.switchState(new GitarooPause());
}
else {
var point:FlxPoint = boyfriend != null ? boyfriend.getScreenPosition() : FlxPoint.get();
openSubState(new PauseSubState(point.x, point.y));
point.put();
openSubState(new PauseSubState());
}
updateDiscordPresence();
+6 -2
View File
@@ -31,9 +31,13 @@ class PauseSubState extends MusicBeatSubstate
private var __cancelDefault:Bool = false;
public function new(x:Float, y:Float)
{
public function new(x:Float = 0, y:Float = 0) {
super();
}
override function create()
{
super.create();
pauseScript = Script.create(Paths.script(script));
pauseScript.setParent(this);