diff --git a/pom.xml b/pom.xml index b002e68..02b938a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ nu.nerd SafeCrystals ${project.name} - 1.0.0 + 1.0.1 jar Prevent Ender Crystals from exploding and breaking blocks or damaging entities. https://github.com/totemo/${project.name} diff --git a/src/nu/nerd/safecrystals/SafeCrystals.java b/src/nu/nerd/safecrystals/SafeCrystals.java index 9f5e06d..07263b8 100644 --- a/src/nu/nerd/safecrystals/SafeCrystals.java +++ b/src/nu/nerd/safecrystals/SafeCrystals.java @@ -157,7 +157,8 @@ protected void tryBreakEnderCrystal(Entity crystal, Player player) { * the dragon. */ protected boolean isDragonSpawningCrystal(Location loc) { - return (loc.distance(CONFIG.END_PORTAL_LOCATION) < CONFIG.END_PORTAL_RADIUS); + return loc.getWorld().equals(CONFIG.END_PORTAL_LOCATION.getWorld()) && + loc.distance(CONFIG.END_PORTAL_LOCATION) < CONFIG.END_PORTAL_RADIUS; } // ------------------------------------------------------------------------