From ccc3ef65beb3c065e0715d416cd9ba5dba410552 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 11 Jan 2020 09:12:59 -0800 Subject: [PATCH] Backwards compatibility restored. Fixes https://github.com/BentoBoxWorld/Level/issues/119 --- pom.xml | 2 +- src/main/java/world/bentobox/level/calculators/PlayerLevel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 89e9be4..8915588 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 2.0.2 1.14.4-R0.1-SNAPSHOT - 1.11.0-SNAPSHOT + 1.9.0 ${build.version}-SNAPSHOT diff --git a/src/main/java/world/bentobox/level/calculators/PlayerLevel.java b/src/main/java/world/bentobox/level/calculators/PlayerLevel.java index 00d3e60..87820f8 100644 --- a/src/main/java/world/bentobox/level/calculators/PlayerLevel.java +++ b/src/main/java/world/bentobox/level/calculators/PlayerLevel.java @@ -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()));