realtime and the superior sword

This commit is contained in:
Super_
2020-01-12 09:51:29 -05:00
parent 93a9885477
commit 939e0730fd
12 changed files with 368 additions and 104 deletions

View File

@ -100,7 +100,15 @@ public class ShopData implements ConfigLoadable, ConfigSavable, Validatable
{
for (String i : items)
{
int id = Integer.valueOf(i.substring(0, 1));
int id;
try
{
id = Integer.valueOf(i.substring(0, 1));
}
catch (NumberFormatException ex)
{
continue;
}
if (item.ordinal() == id)
{
return true;