Fishing drops are no longer random amounts

This commit is contained in:
nossr50
2019-08-23 20:51:32 -06:00
parent 77ffee2515
commit 52f9273fa8
3 changed files with 9 additions and 3 deletions

View File

@ -150,7 +150,7 @@ public class TreasureConfig extends ConfigLoader {
}
if (amount <= 0) {
reason.add("Amount of " + treasureName + " must be greater than 0! " + amount);
amount = 1;
}
if (material != null && material.isBlock() && (data > 127 || data < -128)) {

View File

@ -480,9 +480,10 @@ public class FishingManager extends SkillManager {
treasureDrop.setDurability((short) (Misc.getRandom().nextInt(maxDurability)));
}
if (treasureDrop.getAmount() > 1) {
//TODO: Add option to randomize the amount rewarded
/*if (treasureDrop.getAmount() > 1) {
treasureDrop.setAmount(Misc.getRandom().nextInt(treasureDrop.getAmount()) + 1);
}
}*/
treasure.setDrop(treasureDrop);