mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-21 00:17:56 +01:00
SPIGOT-4970: PlayerTeleportEvent event.setTo() has no effect on portal teleports
This commit is contained in:
parent
6984fc4f83
commit
342194e390
@ -398,7 +398,7 @@
|
|||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ exit = event.getTo();
|
+ exit = tpEvent.getTo();
|
||||||
+ if (exit == null) {
|
+ if (exit == null) {
|
||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user