Skip to content

Commit

Permalink
Forgot - at x coord of portal
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSystem committed Oct 21, 2022
1 parent 5858aa1 commit b333bb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void onGoToPortal(PlayerMoveEvent event) {
double x = loc.getX();
double y = loc.getY();
double z = loc.getZ();
if (x == 41.5 && y >= 52.0 && y <= 57.0 && z >= -0.7 && z <= 1.7) {
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));
}
}
Expand Down

0 comments on commit b333bb3

Please sign in to comment.