Updates SongodaCore to v2.6.11

This commit is contained in:
Christian Koop 2022-02-21 18:32:43 +01:00
parent 6b42f6b0c4
commit 4c36955769
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,7 @@
<dependency>
<groupId>com.songoda</groupId>
<artifactId>SongodaCore</artifactId>
<version>2.6.9</version>
<version>2.6.11</version>
<scope>compile</scope>
</dependency>
@ -132,6 +132,7 @@
<groupId>com.songoda</groupId>
<artifactId>skyblock</artifactId>
<version>2.3.30</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -40,6 +40,7 @@ public class GrowthTask extends BukkitRunnable {
}
// TODO: This should be in config.
// TODO: What does cap stand for? What needs to be in the config? (asked by Sprax)
int cap = (int) Math.ceil(60 / crop.getFarm().getLevel().getSpeedMultiplier()) - crop.getTicksLived();
if (cap > 2) {
int rand = random.nextInt(cap) + 1;