Skip to content

Commit

Permalink
Fix for bug when position contains * instead of ★, Foot/side fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lazanet committed Jan 3, 2018
1 parent b96904e commit a8c27cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions PES_Editor/src/editor/PSDStatPaste.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void sendPSD(String s)
String[] posList = parts[1].split(",");
for (int z=0; z<posList.length; z++)
{
String tmp = posList[z].replace("★","").trim().toUpperCase();
String tmp = posList[z].replace("★","").replace("*","").trim().toUpperCase().replaceAll("[^a-zA-Z0-9]", "");
boolean getOut = false;
for (int k = 0; k < positionNames.length && !getOut; k++)
for (int k1 = 0; k1<positionNames[k].length && !getOut; k1++)
Expand All @@ -135,7 +135,7 @@ private void sendPSD(String s)
tmp = positionNames[0][k1];
retForm.posPanel.checkBox[k1].setSelected(true);
}
if (strIn(posList[z],"★"))
if (strIn(posList[z],"★") || strIn(posList[z],"*"))
{
debugWrite("Reg:"+tmp+" ");
retForm.posPanel.updateRegBox();
Expand Down Expand Up @@ -280,7 +280,7 @@ private void sendPSD(String s)
}
else
{
f = f.replace("★","").trim();
f = f.replace("★","").replace("*","").trim();
for (int z=0; z<abilityNames.length; z++)
if (strIn(abilityNames[z],f) && strIn(f,abilityNames[z]))
{
Expand All @@ -293,7 +293,8 @@ private void sendPSD(String s)
}
catch(Exception e){ debugWrite("Error! "+e);}
}
String fs = foot+" foot/ "+side+" side";
String fs = foot+" foot / "+side+" side";
debugWrite("Foot/side combo:"+fs);
retForm.genPanel.footBox.setSelectedItem(fs);
}

Expand Down

0 comments on commit a8c27cf

Please sign in to comment.