From 376d49714c398407975774ed67c68f8983646473 Mon Sep 17 00:00:00 2001 From: Redar13 <93761434+Redar13@users.noreply.github.com> Date: Tue, 27 Jan 2026 23:32:30 +0500 Subject: [PATCH] Fix GF bopping when switching levels in the story menu. --- source/funkin/ui/story/Level.hx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/funkin/ui/story/Level.hx b/source/funkin/ui/story/Level.hx index 4212f632c4f..26601a90d9a 100644 --- a/source/funkin/ui/story/Level.hx +++ b/source/funkin/ui/story/Level.hx @@ -202,10 +202,13 @@ class Level implements IRegistryEntry if (_data.props.length == 0) return props; - var hiddenProps:Array = props.splice(_data.props.length - 1, props.length - 1); - for (hiddenProp in hiddenProps) + // Hides unused props + if (_data.props.length < props.length) { - hiddenProp.visible = false; + for (i in _data.props.length...props.length) + { + props[i].visible = false; + } } for (propIndex in 0..._data.props.length)