mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
Fixed using custom PTAs for PlayerPortal event.
This commit is contained in:
parent
6e4b12cdf1
commit
6f8d4c3a52
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ public class ServerConfigurationManager {
|
|||
|
||||
Location finalLocation = event.getTo();
|
||||
if (event.useTravelAgent()) {
|
||||
finalLocation = pta.findOrCreate(finalLocation);
|
||||
finalLocation = event.getPortalTravelAgent().findOrCreate(finalLocation);
|
||||
}
|
||||
toWorld = ((CraftWorld) finalLocation.getWorld()).getHandle();
|
||||
this.moveToWorld(entityplayer, toWorld.dimension, finalLocation);
|
||||
|
|
Loading…
Reference in a new issue