From 4d0046fcdc48e6cdb36f09b6fd910d67976ef808 Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 16 Sep 2021 16:58:11 -0700 Subject: [PATCH] Enderpearls were moving islandd centers in other worlds https://github.com/BentoBoxWorld/Boxed/issues/31 --- pom.xml | 2 +- .../java/world/bentobox/boxed/listeners/EnderPearlListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 899dc85..f37665f 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 2.0.9 1.17-R0.1-SNAPSHOT - 1.17.0 + 1.17.3 ${build.version}-SNAPSHOT diff --git a/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java b/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java index 3c9efe9..b5d018b 100644 --- a/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java +++ b/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java @@ -38,7 +38,7 @@ public class EnderPearlListener implements Listener { public void onEnderPearlLand(ProjectileHitEvent e) { if (!e.getEntityType().equals(EntityType.ENDER_PEARL) || e.getHitBlock() == null - || !addon.getPlugin().getIWM().inWorld(e.getHitBlock().getLocation())) { + || !addon.inWorld(e.getHitBlock().getLocation())) { return; } Location l = e.getHitBlock().getRelative(BlockFace.UP).getLocation();