Removed thrown IllegalStateException from EnchantItemGroup.
This commit is contained in:
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -68,7 +68,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -68,7 +68,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
@@ -69,7 +69,7 @@ public class EnchantItemGroup
|
|||||||
return holder.getChance();
|
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();
|
return _chances.get(_chances.size() - 1).getChance();
|
||||||
}
|
}
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
LOGGER.warning(getClass().getSimpleName() + ": item group: " + _name + " doesn't have any chances!");
|
||||||
|
Reference in New Issue
Block a user