Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed using custom PTAs for PlayerPortal event.
Dieser Commit ist enthalten in:
Ursprung
6e4b12cdf1
Commit
6f8d4c3a52
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren