Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
SPIGOT-5972: PlayerPortalEvent.setTo() when returning through an End Portal Crashes Server
Dieser Commit ist enthalten in:
Ursprung
72f3689092
Commit
dba91d2ab6
@ -475,7 +475,7 @@
|
|||||||
+ exit.setZ(k);
|
+ exit.setZ(k);
|
||||||
+ // this.setMot(Vec3D.a);
|
+ // this.setMot(Vec3D.a);
|
||||||
+ exitVelocity = Vec3D.a;
|
+ exitVelocity = Vec3D.a;
|
||||||
+ } else {
|
+ } else if (worldserver.getTypeKey() == DimensionManager.THE_NETHER || worldserver1.getTypeKey() == DimensionManager.THE_NETHER) {
|
||||||
+ ShapeDetector.Shape portalShape = worldserver.getTravelAgent().findAndTeleport(this, exitPosition, f2, event.getSearchRadius(), true);
|
+ ShapeDetector.Shape portalShape = worldserver.getTravelAgent().findAndTeleport(this, exitPosition, f2, event.getSearchRadius(), true);
|
||||||
+ if (portalShape == null && event.getCanCreatePortal()) {
|
+ if (portalShape == null && event.getCanCreatePortal()) {
|
||||||
+ if (worldserver.getTravelAgent().createPortal(this, exitPosition, event.getCreationRadius())) { // Only check for new portal if creation succeeded
|
+ if (worldserver.getTravelAgent().createPortal(this, exitPosition, event.getCreationRadius())) { // Only check for new portal if creation succeeded
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren