Removed thrown IllegalStateException from EnchantItemGroup.

This commit is contained in:
MobiusDevelopment 2021-10-20 14:40:05 +00:00
parent 99475603b6
commit feb0b609f0
21 changed files with 21 additions and 21 deletions

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -68,7 +68,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -68,7 +68,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");

View File

@ -69,7 +69,7 @@ public class EnchantItemGroup
return holder.getChance();
}
}
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name, new IllegalStateException());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't match proper chance for item group: " + _name);
return _chances.get(_chances.size() - 1).getChance();
}
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");