9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-06 15:51:50 +00:00
This commit is contained in:
Xiao-MoMi
2023-01-09 20:05:07 +08:00
parent 2ad24b0659
commit 97fd04b017
19 changed files with 105 additions and 35 deletions

View File

@@ -906,8 +906,9 @@ public class FishingManager extends Function {
int timer;
int time;
if (loot != null){
speed = loot.getDifficulty().speed();
timer = loot.getDifficulty().timer();
Difficulty difficulty = loot.getDifficulty()[new Random().nextInt(loot.getDifficulty().length)];
speed = difficulty.speed();
timer = difficulty.timer();
time = loot.getTime();
}
else {