mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Fishing drops are no longer random amounts
This commit is contained in:
@ -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)) {
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user