Backwards compatibility restored.

Fixes https://github.com/BentoBoxWorld/Level/issues/119
This commit is contained in:
tastybento 2020-01-11 09:12:59 -08:00
parent 4bf86bb07f
commit ccc3ef65be
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
<powermock.version>2.0.2</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.14.4-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.11.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.9.0</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. -->

View File

@ -66,7 +66,7 @@ public class PlayerLevel {
keyValues.put("pointsToNextLevel", calc.getResult().getPointsToNextLevel());
keyValues.put("deathHandicap", calc.getResult().getDeathHandicap());
keyValues.put("initialLevel", calc.getResult().getInitialLevel());
AddonEvent.builder().addon(addon).keyValues(keyValues).build();
new AddonEvent().builder().addon(addon).keyValues(keyValues).build();
Results results = ilce.getResults();
// Save the results
island.getMemberSet().forEach(m -> addon.setIslandLevel(world, m, results.getLevel()));