1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-05 07:04:44 +02:00

Added the possibility to not use a max level for Fishing

by using a negative number, changed default
treasure.yml file accordingly
This commit is contained in:
bm01
2013-01-26 01:02:04 +01:00
parent 188ad359fe
commit a0a52a3433
4 changed files with 872 additions and 874 deletions
Changelog.txt
src/main
java
com
gmail
nossr50
resources

@ -131,10 +131,8 @@ public class TreasuresConfig extends ConfigLoader{
}
int maxLevel = config.getInt("Treasures." + treasureName + ".Max_Level");
if (maxLevel < 0) {
reason.add("Invalid Max_Level: " + maxLevel);
}
if (noErrorsInTreasure(reason)) {
FishingTreasure fTreasure = new FishingTreasure(item, xp, dropChance, dropLevel, maxLevel);