diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch index fa95b726cc..606b7d1bec 100644 --- a/nms-patches/EntityPlayer.patch +++ b/nms-patches/EntityPlayer.patch @@ -475,7 +475,7 @@ + exit.setZ(k); + // this.setMot(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); + if (portalShape == null && event.getCanCreatePortal()) { + if (worldserver.getTravelAgent().createPortal(this, exitPosition, event.getCreationRadius())) { // Only check for new portal if creation succeeded