Removed thrown IllegalStateException from EnchantItemGroup.
This commit is contained in:
parent
99475603b6
commit
feb0b609f0
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user