From 3b1ab78fb96fc92871fb5c10a9e71378db848e44 Mon Sep 17 00:00:00 2001 From: hadesanc1 Date: Sun, 12 Jan 2025 12:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=9C=A8=E7=89=88=E6=9C=AC=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=AD=E8=BF=9E=E7=BB=AD=E6=8C=89=E4=B8=8Bmod?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E7=9A=84=E2=80=9C=E5=88=A0=E9=99=A4=E2=80=9D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=97=B6=EF=BC=8Cg=E6=A6=82=E7=8E=87?= =?UTF-8?q?=E5=AF=BC=E8=87=B4PCL2=E5=B4=A9=E6=BA=83=E3=80=82=20Fixes=20#54?= =?UTF-8?q?02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Minecraft/MyLocalModItem.xaml.vb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plain Craft Launcher 2/Modules/Minecraft/MyLocalModItem.xaml.vb b/Plain Craft Launcher 2/Modules/Minecraft/MyLocalModItem.xaml.vb index f826928..9acbea9 100644 --- a/Plain Craft Launcher 2/Modules/Minecraft/MyLocalModItem.xaml.vb +++ b/Plain Craft Launcher 2/Modules/Minecraft/MyLocalModItem.xaml.vb @@ -138,8 +138,13 @@ Public Class MyLocalModItem End If '计算滑动范围 Dim Index = CType(Parent, StackPanel).Children.IndexOf(Me) + If Index < 0 OrElse Index >= CType(Parent, StackPanel).Children.Count Then Exit Sub SwipeStart = Math.Min(SwipeStart, Index) SwipeEnd = Math.Max(SwipeEnd, Index) + If SwipeStart < 0 Then SwipeStart = 0 + If SwipeEnd < 0 Then SwipeEnd = 0 + If SwipeStart >= CType(Parent, StackPanel).Children.Count Then SwipeStart = CType(Parent, StackPanel).Children.Count - 1 + If SwipeEnd >= CType(Parent, StackPanel).Children.Count Then SwipeEnd = CType(Parent, StackPanel).Children.Count - 1 '勾选所有范围中的项 If SwipeStart = SwipeEnd Then Exit Sub For i = SwipeStart To SwipeEnd