mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
SPIGOT-4970: PlayerTeleportEvent event.setTo() has no effect on portal teleports
This commit is contained in:
@@ -398,7 +398,7 @@
|
|||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ exit = event.getTo();
|
+ exit = tpEvent.getTo();
|
||||||
+ if (exit == null) {
|
+ if (exit == null) {
|
||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user