From 1a8646f4e89806fe9ebda718f16bbb7b75e238f7 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Mon, 30 Jun 2025 22:39:15 +0700 Subject: [PATCH] Update PlayState.hx --- source/funkin/game/PlayState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index ba920a5e..0c2a8798 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1468,12 +1468,12 @@ class PlayState extends MusicBeatState case "Camera Modulo Change": camZoomingInterval = event.params[0]; camZoomingStrength = event.params[1]; - camZoomingEvery = switch (event.params[2].toUpperCase()) { + if (event.params[2] != null) camZoomingEvery = switch (event.params[2].toUpperCase()) { case "STEP": STEP; case "MEASURE": MEASURE; default: BEAT; } - camZoomingOffset = event.params[2]; + if (event.params[3] != null) camZoomingOffset = event.params[3]; case "Camera Flash": var camera:FlxCamera = event.params[3] == "camHUD" ? camHUD : camGame;