Skip to content

Commit

Permalink
Convert to vertical portal
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSystem committed Oct 21, 2022
1 parent 7275640 commit 5858aa1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public void onGoToPortal(PlayerMoveEvent event) {
double x = loc.getX();
double y = loc.getY();
double z = loc.getZ();
if (x >= -42.7 && x <= -40.3 && y >= 51.0 && y <= 51.5 && z >= -0.7 && z <= 1.7) {
// event.getPlayer().teleport(new Location(event.getPlayer().getWorld(), -12.5, 50, 0.5, -90, 0));
if (x == 41.5 && y >= 52.0 && y <= 57.0 && z >= -0.7 && z <= 1.7) {
event.getPlayer().teleport(new Location(event.getPlayer().getWorld(), -12.5, 50, 0.5, -90, 0));
}
}
}

0 comments on commit 5858aa1

Please sign in to comment.