Skip to content

Commit

Permalink
Fix infinite end portal loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yepoleb committed Aug 7, 2016
1 parent 261f888 commit cf3292f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onPlayerPortal(PlayerPortalEvent event) {
if (event.getFrom().getWorld().equals(event.getTo().getWorld())) {
// The player is Portaling to the same world.
this.plugin.log(Level.FINER, "Player '" + event.getPlayer().getName() + "' is portaling to the same world. Ignoring.");
event.setTo(originalTo);
event.setCancelled(true);
return;
}
MultiverseWorld fromWorld = this.worldManager.getMVWorld(event.getFrom().getWorld().getName());
Expand Down

0 comments on commit cf3292f

Please sign in to comment.