From 9354382f768294a7b8bf1ac463acbfd8bece6aaf Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 13 Mar 2021 15:39:50 -0800 Subject: [PATCH] Sets island spawn point to new enderpearl location. https://github.com/BentoBoxWorld/Boxed/issues/4 --- .../java/world/bentobox/boxed/listeners/EnderPearlListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java b/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java index 0a84408..66a69d8 100644 --- a/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java +++ b/src/main/java/world/bentobox/boxed/listeners/EnderPearlListener.java @@ -55,6 +55,7 @@ public class EnderPearlListener implements Listener { }); try { i.setProtectionCenter(l); + i.setSpawnPoint(l.getWorld().getEnvironment(), l); u.getPlayer().playSound(l, Sound.ENTITY_GENERIC_EXPLODE, 2F, 2F); } catch (IOException e1) { addon.logError("Could not move box " + e1.getMessage());