Enderpearls were moving islandd centers in other worlds

https://github.com/BentoBoxWorld/Boxed/issues/31
This commit is contained in:
tastybento 2021-09-16 16:58:11 -07:00
parent 764402bdeb
commit 4d0046fcdc
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
<powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.17.0</bentobox.version>
<bentobox.version>1.17.3</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

@ -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();