{"action":"created","issue":{"url":"https://api.github.com/repos/bensku/Skript/issues/12","repository_url":"https://api.github.com/repos/bensku/Skript","labels_url":"https://api.github.com/repos/bensku/Skript/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bensku/Skript/issues/12/comments","events_url":"https://api.github.com/repos/bensku/Skript/issues/12/events","html_url":"https://github.com/bensku/Skript/issues/12","id":140752244,"number":12,"title":"Teleporting between worlds gives an error","user":{"login":"TheBentoBox","id":6902229,"avatar_url":"https://avatars.githubusercontent.com/u/6902229?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBentoBox","html_url":"https://github.com/TheBentoBox","followers_url":"https://api.github.com/users/TheBentoBox/followers","following_url":"https://api.github.com/users/TheBentoBox/following{/other_user}","gists_url":"https://api.github.com/users/TheBentoBox/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBentoBox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBentoBox/subscriptions","organizations_url":"https://api.github.com/users/TheBentoBox/orgs","repos_url":"https://api.github.com/users/TheBentoBox/repos","events_url":"https://api.github.com/users/TheBentoBox/events{/privacy}","received_events_url":"https://api.github.com/users/TheBentoBox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bensku/Skript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-14T18:04:19Z","updated_at":"2016-03-15T13:30:46Z","closed_at":null,"body":"When teleporting between two separate worlds, a stack trace appears in console saying \"cannot measure distance between worlds\". I think it's because of the changes in [this commit](https://github.com/bensku/Skript/commit/334555cbb0a87a91f4fd88c76904021f1fedb59c). Particularly this line:\r\n\r\n`if (to.equals(from) || to.distanceSquared(from) < 2)`\r\n\r\nI don't write plugins, but looking at the Bukkit API, it looks like you'd want to change that whole section to:\r\n\r\n```\r\nif (to.equals(from))  \r\n\treturn;\r\nelse if (to.getWorld() == from.getWorld())\r\n\tif (to.distanceSquared(from) < 2)\r\n\t\treturn;\r\n````\r\n\r\n[Stacktrace](http://pastebin.com/SaxiQbwb)."},"comment":{"url":"https://api.github.com/repos/bensku/Skript/issues/comments/196817876","html_url":"https://github.com/bensku/Skript/issues/12#issuecomment-196817876","issue_url":"https://api.github.com/repos/bensku/Skript/issues/12","id":196817876,"user":{"login":"bensku","id":4330456,"avatar_url":"https://avatars.githubusercontent.com/u/4330456?v=3","gravatar_id":"","url":"https://api.github.com/users/bensku","html_url":"https://github.com/bensku","followers_url":"https://api.github.com/users/bensku/followers","following_url":"https://api.github.com/users/bensku/following{/other_user}","gists_url":"https://api.github.com/users/bensku/gists{/gist_id}","starred_url":"https://api.github.com/users/bensku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensku/subscriptions","organizations_url":"https://api.github.com/users/bensku/orgs","repos_url":"https://api.github.com/users/bensku/repos","events_url":"https://api.github.com/users/bensku/events{/privacy}","received_events_url":"https://api.github.com/users/bensku/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T13:30:46Z","updated_at":"2016-03-15T13:30:46Z","body":"Should be fixed in next release."}}