mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Fixed using custom PTAs for PlayerPortal event.
This commit is contained in:
@@ -299,7 +299,7 @@ public class ServerConfigurationManager {
|
|||||||
|
|
||||||
Location finalLocation = event.getTo();
|
Location finalLocation = event.getTo();
|
||||||
if (event.useTravelAgent()) {
|
if (event.useTravelAgent()) {
|
||||||
finalLocation = pta.findOrCreate(finalLocation);
|
finalLocation = event.getPortalTravelAgent().findOrCreate(finalLocation);
|
||||||
}
|
}
|
||||||
toWorld = ((CraftWorld) finalLocation.getWorld()).getHandle();
|
toWorld = ((CraftWorld) finalLocation.getWorld()).getHandle();
|
||||||
this.moveToWorld(entityplayer, toWorld.dimension, finalLocation);
|
this.moveToWorld(entityplayer, toWorld.dimension, finalLocation);
|
||||||
|
Reference in New Issue
Block a user