From 34abee594db015d0ab90595fbaa3004dd0857da7 Mon Sep 17 00:00:00 2001 From: EliteMasterEric <ericmyllyoja@gmail.com> Date: Wed, 9 Aug 2023 18:11:19 -0400 Subject: [PATCH] Fix bug where onUpdate was called twice per frame --- source/funkin/play/PlayState.hx | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index a4f29fda9..a28c35c67 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -923,9 +923,6 @@ class PlayState extends MusicBeatSubState // Moving notes into position is now done by Strumline.update(). processNotes(elapsed); - - // Dispatch the onUpdate event to scripted elements. - dispatchEvent(new UpdateScriptEvent(elapsed)); } public override function dispatchEvent(event:ScriptEvent):Void