Fix Legacy Rating/Timing Handler

This commit is contained in:
Ralty
2025-11-18 11:25:07 +07:00
parent 535e702bc2
commit 7fc047615f
6 changed files with 69 additions and 68 deletions
@@ -118,10 +118,6 @@ final class NoteHitEvent extends CancellableEvent {
* The attached healthIcon used distinction for icons amongst others
*/
public var healthIcon:HealthIcon;
/**
* Whether note hits are judged in the old way or not.
*/
public var legacyJudge(get, set):Bool;
/**
* Prevents the default sing animation from being played.
@@ -200,15 +196,4 @@ final class NoteHitEvent extends CancellableEvent {
characters = [char];
return char;
}
private var _explicitLegacyJudge:Null<Bool> = null;
private inline function get_legacyJudge():Bool {
if (_explicitLegacyJudge != null)
return _explicitLegacyJudge;
return Flags.MOD_API_VERSION == 1;
}
private function set_legacyJudge(value:Bool):Bool {
_explicitLegacyJudge = value;
return value;
}
}