commit e7a02d7ba7fea0bc19f9790bda07c293889c5b39
parent 6c87e72d94e2280e068b219586aa8225c1bab596
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Wed, 12 Jun 2024 21:21:31 +0200

fix(mixer_stories): crash

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt @@ -49,7 +49,7 @@ class MixerStories : Feature("MixerStories", loadParams = FeatureLoadParams.INIT event.hookRequestBuffer { buffer -> ProtoEditor(buffer).apply { edit { - get(2).removeIf { + getOrNull(2)?.removeIf { it.toReader().getVarInt(7, 4) == 1L } }