New crash handler + Additional null safety for ChartEditorState (#130)
* A bunch of smaller syntax tweaks. * New crash handler catches and logs critical errors! * Chart editor now has null safety enabled. * Fix -W build issue. * Actually update hmm.json to use the crash handling branch * Fix issues causing crash handler to trigger
This commit is contained in:
@@ -27,7 +27,7 @@ class ChartEditorNoteSprite extends FlxSprite
|
||||
* The note data that this sprite represents.
|
||||
* You can set this to null to kill the sprite and flag it for recycling.
|
||||
*/
|
||||
public var noteData(default, set):SongNoteData;
|
||||
public var noteData(default, set):Null<SongNoteData>;
|
||||
|
||||
/**
|
||||
* The name of the note style currently in use.
|
||||
@@ -70,7 +70,7 @@ class ChartEditorNoteSprite extends FlxSprite
|
||||
this.animation.addByPrefix('tapRightPixel', 'pixel7');
|
||||
}
|
||||
|
||||
static var noteFrameCollection:FlxFramesCollection = null;
|
||||
static var noteFrameCollection:Null<FlxFramesCollection> = null;
|
||||
|
||||
/**
|
||||
* We load all the note frames once, then reuse them.
|
||||
@@ -108,7 +108,7 @@ class ChartEditorNoteSprite extends FlxSprite
|
||||
}
|
||||
}
|
||||
|
||||
function set_noteData(value:SongNoteData):SongNoteData
|
||||
function set_noteData(value:Null<SongNoteData>):Null<SongNoteData>
|
||||
{
|
||||
this.noteData = value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user