From 224f9c87d7199e0674eedcda9a620c2239d7561a Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Tue, 23 Apr 2024 11:00:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20certain=20forms=20crashing=20pok=C3=A9dex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- P3D/Player/Pokedex.vb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/P3D/Player/Pokedex.vb b/P3D/Player/Pokedex.vb index a090ab212..a0f1117b7 100644 --- a/P3D/Player/Pokedex.vb +++ b/P3D/Player/Pokedex.vb @@ -94,8 +94,8 @@ End If If ID.Contains("_") Then - If Pokemon.GetPokemonByID(CInt(ID.GetSplit(0, "_"))).DexForms.Contains(ID.GetSplit(1, "_")) Then - cOriginalEntry = GetEntryType(Data, ID.GetSplit(0, "_")).ToString + If Pokemon.GetPokemonByID(CInt(ID.GetSplit(0, "_").GetSplit(0, ";"))).DexForms.Contains(ID.GetSplit(1, "_")) Then + cOriginalEntry = GetEntryType(Data, ID.GetSplit(0, "_").GetSplit(0, ";")).ToString End If End If @@ -121,9 +121,9 @@ End If If ID.Contains("_") Then - If Pokemon.GetPokemonByID(CInt(ID.GetSplit(0, "_"))).DexForms.Contains(ID.GetSplit(1, "_")) Then - If cData.Contains("{" & ID.GetSplit(0, "_") & "|") = False Then - cData &= "{" & ID.GetSplit(0, "_") & "|" & 0 & "}" & Environment.NewLine + If Pokemon.GetPokemonByID(CInt(ID.GetSplit(0, "_").GetSplit(0, ";"))).DexForms.Contains(ID.GetSplit(1, "_")) Then + If cData.Contains("{" & ID.GetSplit(0, "_").GetSplit(0, ";") & "|") = False Then + cData &= "{" & ID.GetSplit(0, "_").GetSplit(0, ";") & "|" & 0 & "}" & Environment.NewLine End If End If End If