SPIGOT-4970: PlayerTeleportEvent event.setTo() has no effect on portal teleports

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-05-21 21:04:45 +10:00
parent 817d83e1bb
commit 26041887a6

View file

@ -398,7 +398,7 @@
+ return null;
+ }
+
+ exit = event.getTo();
+ exit = tpEvent.getTo();
+ if (exit == null) {
+ return null;
+ }