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:
Changelog.txt
src/main
@ -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);
|
||||
|
Reference in New Issue
Block a user