mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-01-05 18:37:48 +01:00
Enderpearls were moving islandd centers in other worlds
https://github.com/BentoBoxWorld/Boxed/issues/31
This commit is contained in:
parent
764402bdeb
commit
4d0046fcdc
2
pom.xml
2
pom.xml
@ -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. -->
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user